SwitchRom from computer - G1 Android Development

Ok well I am working on making a switchrom rom .exe and so you can Backup and Restore and everything through your computer so you dont have to type any code or anything and I have the backup part done.
My only problem is that I am using C++ to do it and I really need to enter a string into a system command, for example
system("adb shell sh /system/sd/switchrom.sh -s "mystring;""); but whatever I do I can't get it to work
if anyone knows how to do this please help. I am kinda a noob at C++

kickfliprock13 said:
Ok well I am working on making a switchrom rom .exe and so you can Backup and Restore and everything through your computer so you dont have to type any code or anything and I have the backup part done.
My only problem is that I am using C++ to do it and I really need to enter a string into a system command, for example
system("adb shell sh /system/sd/switchrom.sh -s "mystring;""); but whatever I do I can't get it to work
if anyone knows how to do this please help. I am kinda a noob at C++
Click to expand...
Click to collapse
understandable you are wanting help, but im not so sure i would trust a noob that is making a .exe file to backup/restore my phone lol
nothing against you of course, just sayin.

kickfliprock13 said:
Ok well I am working on making a switchrom rom .exe and so you can Backup and Restore and everything through your computer so you dont have to type any code or anything and I have the backup part done.
My only problem is that I am using C++ to do it and I really need to enter a string into a system command, for example
system("adb shell sh /system/sd/switchrom.sh -s "mystring;""); but whatever I do I can't get it to work
if anyone knows how to do this please help. I am kinda a noob at C++
Click to expand...
Click to collapse
There are probably two issues with what you are trying to do:
1. 'adb' from toolkit version less than 1.5r3 doesn't work like that. So, you need to upgrade to 1.5r3 if you want to invoke "adb shell sh /system/sd/switchrom.sh...."
2. You need to escape the inner string's quotation marks, otherwise your string argument to 'system' ends with the first quote. Something like:
Code:
system("adb shell sh /system/sd/switchrom.sh -s \"mystring\"");
Of course, you need to make sure /system/sd is mounted before you can run switchrom.sh from it. And you need to make sure that the phone is in recovery mode. If its not in recovery mode, don't run switchrom.sh.

I like this idea
I would love the option to do this, however, I primarily use a linuxbox, and in all honesty, don't like switching on my VM or for that matter rebooting my machine (adb under windows sux bawlz anyway )
I would however, consider it, if this turns out all right! could be similar to the few android phone managers we have already out there, maybe if you can get it to work right they could help you implement it (or you could ask some assistance in the C area)
ComplexMinded is writing an android manager also, and it runs on windows OS, maybe you coudl take a look at that program?
link: (under dream apps/games) My Android Manager

Good idea, but wouldn't it be a whole lot simplier to make a batch file?
senior member finally !!!

Batch File
yeah it would be alot easier to create a batch file and if you guys want me to do that I could have that out by tomorrow, but I have made alot of android batch files on other sites and people always ask me to convert to .exe,
and I am not a total noob (and it's totally understandable not to trust a noob and if that is the case then just don't run my application)
getting all that out of the way I think that I have figured it out.

batch file
ive tried making my own batch files, but as soon as i enter the adb shell, the next lines in the batchfile are ignored

skeeedup said:
ive tried making my own batch files, but as soon as i enter the adb shell, the next lines in the batchfile are ignored
Click to expand...
Click to collapse
You can't enter the shell, you have to execute shell commands in the following manner:
adb shell [command] [-switches] [args]
For example, to delete a folder you would do
adb shell rm -rf /data/data/[name_of_folder]

Personally I'd prefer BAT files so you can see what is going on in them. The only problem with a BAT file is anybody can grab it and change it causing damage to somebody elses device.
I create .bat files at home all the time for doing things that require command line or could use command line, but thats just my preference.

palosjr said:
understandable you are wanting help, but im not so sure i would trust a noob that is making a .exe file to backup/restore my phone lol
nothing against you of course, just sayin.
Click to expand...
Click to collapse
I learned a long time ago not to discount someone just because there's a "Junior Member" next to their username. Some of the greatest developments on here have come from a one time JM, even when they were JM's. Good luck with this, and welcome to the community. That being said, you'd better not [email protected]#$ up anyone's phone or computer!!! Just Kidding

overground said:
I learned a long time ago not to discount someone just because there's a "Junior Member" next to their username. Some of the greatest developments on here have come from a one time JM, even when they were JM's. Good luck with this, and welcome to the community. That being said, you'd better not [email protected]#$ up anyone's phone or computer!!! Just Kidding
Click to expand...
Click to collapse
i wasnt discounting his abilities with the phone/computers, but when he said he was a noob at C++... thats what i was referring to..

I have worked a lot but I don't think the problem I have been having is possible. I have posted questions of it everywhere and I even asked my C++ instructors if it was possible and they didn't even know.
So I will either write it in a batch or in python or maybe both. It will take a little longer cause now I have to throw away my entire last project and start all the way over!
Oh yeah and here is my twitter I have gotten some PM's asking for it.
http://twitter.com/kickfliprock13
dont mind the last few tweets I did I was testing out plurk
http://www.plurk.com/kickfliprock13

palosjr said:
i wasnt discounting his abilities with the phone/computers, but when he said he was a noob at C++... thats what i was referring to..
Click to expand...
Click to collapse
Gotcha...wasn't aiming at you either, notice I did not quote you in my previous post. Just a general statement. However, now that you point out the C++ thing, I ain't gonna use any of this noob's shyt!!!
Just kidding again!!!

if you already have the batch file ready, it would be easier to port it over to C# ... if you need any help with that, i gotcha ... C++ really shouldnt be dealt with unless you really know what you're doing with it

overground said:
I learned a long time ago not to discount someone just because there's a "Junior Member" next to their username. Some of the greatest developments on here have come from a one time JM, even when they were JM's. Good luck with this, and welcome to the community. That being said, you'd better not [email protected]#$ up anyone's phone or computer!!! Just Kidding
Click to expand...
Click to collapse
Agree 1000000%
and I will be more than happy to be a tester. I will be following this thread from now on. Thanks for your time and effort. Keep the good work

isn't just the same thign using the command promt with adb? x_x is what i use..

kickfliprock13 said:
Ok well I am working on making a switchrom rom .exe and so you can Backup and Restore and everything through your computer so you dont have to type any code or anything and I have the backup part done.
My only problem is that I am using C++ to do it and I really need to enter a string into a system command, for example
system("adb shell sh /system/sd/switchrom.sh -s "mystring;""); but whatever I do I can't get it to work
if anyone knows how to do this please help. I am kinda a noob at C++
Click to expand...
Click to collapse
It's been a few years since I've done C++, but I *think* you can just concatenate the strings together, also using the \ to escape the needed " marks. Something like this:
Code:
#include <string>
int main() {
string mystring;
string command;
mystring = "nandroidBackupROMName"; // or whatever your string is
command = "adb shell sh /system/sd/switchrom.sh -s \""; //first partt
command = command + mystring; //add the mystring
command = command + "\""; //close the command with the "
system(command);
return 0;
}

Related

JesusFreke auto-updater in the works.

OK, here is the latest. This thread topic has changed a lot since I started it so I deleted it all and am cleaning it up.
A few weeks ago I wrote a .sh script that would check a file to find if there was a new version of the JF roms available. Updating is a pain and I wanted to make it easier. Not knowing Java I decided to write a .sh script which worked but was not very easy to use itself. To make it easier I asked for help here in making a frontend Android app to go with it. Since then, [RiS] has written a nice client that not only does what my script did, but does it without needing my script. The whole process is taken care of within the application. This makes it easier to use, faster and able to do a lot more than my script ever. The app is still in beta at this time but is coming along nicely.
The app name is JFupdater and currently it read a text file on my server (http://android-dls.com/up.txt). The info in that file tells the app if there is a new JF Rom available. I update this file whenever JesusFreke releases a new rom. There are fields for US G1, UK G1 and ADP1 which allows roms for all 3 to be tracked and updated. The version, description, md5sum and a list of mirrors to download. The application checks your phone type (or the phone type you select in the settings) and then checks this file to see if a newer version is available. IF there is it will let you know which are ready for download and give you a download button. Once downloaded the file can be applied by rebooting into recovery.
I believe he is working on making the reboot to recovery/apply update more automates so that after download you would be asked if you want to apply it now, and by choosing yes it would reboot and auto install the update like an official OTA would do.
There is currently a service set that allows you to set it to look for an update ever 1 hour, 24 hours or on boot.
The url where this project is located is: jfupdater.googlecode.com
I'm not sure how to run shell commands through an app. If anyone knows how I can definitely write the service to do this.
I know its possible because someone in #android wrote one. Also another thing that might need to be done would be to copy this file to /cache and chmod it (if its on sdcard it cannot be executed). I will try to ask around how to run a shell command for you.
ok, not sure if this helps, but this is from the source of Koush's superuser whitelist (thanks for making that available for us):
String command = String.format("echo \"mount -oremount,rw /dev/block/mtdblock3 /system\" | %s\nexit\n", suCommand);
Process p = Runtime.getRuntime().exec("sh");
OutputStream writer = p.getOutputStream();
writer.write(command.getBytes("ASCII"));
Thread.sleep(500);
and
if (superuser.exists())
{
// return device to original state
Process process = Runtime.getRuntime().exec("superuser");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("busybox cp /system/bin/superuser /system/bin/su\n");
os.writeBytes("busybox chown 0:0 /system/bin/su\n");
os.writeBytes("chmod 4755 /system/bin/su\n");
os.writeBytes("rm /system/bin/superuser\n");
os.writeBytes("exit\n");
os.flush();
}
Hopefully the info you need is in this (i dont know java, but that looks like the code to me)
What about "running" the script code directly in the service? I mean, translate the script into java code.
This would remove the need of executing a shell script, and you wouldn't rely on system tools (that may change or crash in future updates / new devices).
Moreovew, it would also allow to add more options (Like check for updates, and when an update is found, ask the user if they want to download it or not. This could be useful if he is on a slow connetion, or it has not an unlimited data plan...)
I can start/work with LPChris on this.
I was just looking at your update.sh script.
Just to clean it up a little, you can use a split function.
myString = jlatest.split("|")
That would split the text at everyone and give you
myString(0) = "version"
mystring(1) = "md5sum"
mystring(2) = "mirror1"
mystring(3) = "mirror2"
etc...
So yeah. I'm glad that you're doing this though.
I'm not any good at java so I can't help sadly enough.
I should start learning though.
I'm also interested in an app the can run scripts (which I can make shortcuts for..)
I'm not an java developer, however I've started writing something that could do that using a code similar to the above.
any other developers that can assist ?
ido said:
I'm also interested in an app the can run scripts (which I can make shortcuts for..)
I'm not an java developer, however I've started writing something that could do that using a code similar to the above.
any other developers that can assist ?
Click to expand...
Click to collapse
I'm actually building out the service now, I'll work on it more after I get home from work tonight. If you're good with building services too, by all means have a crack at it.
this will be awesome. can you make it for uk versions too please
I have started working on this, hopefully will have a working version by tommorow.
Also, we have some bandwidth available at modmygphone.com which we can use for the mirror.
As I said I am a n00b when it comes to .sh scripts, and this is probably my third. If you have a way to make it work better, by all means let me know. As for making a java app that does all of this, if you can do it, great! I do not really care about the script other than the fact that I couldnt do this any other way and didn't want to be begging for a developers help unless I had already done what I could myself.
I have been working on a similar concept myself. I even got the /cache/recovery/command stuff working. Just write the following commands to that file:
Code:
boot-recovery
--update_package=partition:file
Then you can run 'reboot recovery' from the terminal and the phone will automatically reboot into recovery mode and apply the update. It won't go back into user mode on its own though (you have to hold home+back to do so).
I would much prefer this to be a GUI based utility, instead of a shell script that just runs in the background. We could apply ROM updates, themes etc right on the phone by simply giving a URL to the location of the file and have the phone do the rest
Datruesurfer said:
Then you can run 'reboot recovery'
Click to expand...
Click to collapse
Thanks for this, we were looking into how to do this. How did you find that out? I guess the android app that does all this can now force the reboot also
Datruesurfer said:
I have been working on a similar concept myself. I even got the /cache/recovery/command stuff working. Just write the following commands to that file:
Code:
boot-recovery
--update_package=partition:file
Then you can run 'reboot recovery' from the terminal and the phone will automatically reboot into recovery mode and apply the update. It won't go back into user mode on its own though (you have to hold home+back to do so).
I would much prefer this to be a GUI based utility, instead of a shell script that just runs in the background. We could apply ROM updates, themes etc right on the phone by simply giving a URL to the location of the file and have the phone do the rest
Click to expand...
Click to collapse
That's too easy! good find
Any word on the progress?
Darkrift said:
Any word on the progress?
Click to expand...
Click to collapse
LPChris and myself have started a project on google code, we expect to have some working code soon.
Anyone who wants to contribute with ideas, testing, etc.. is welcome!
For some reason my Subclipse isn't playing nice with the Google Code repository right now so I haven't been able to get any of my code up there yet, but hopefully we'll have something going fairly soon. I'm going to rewrite as much of it as I can in Java so that the user can be notified and authorize the download in two separate steps.
[RiS] said:
LPChris and myself have started a project on google code, we expect to have some working code soon.
Anyone who wants to contribute with ideas, testing, etc.. is welcome!
Click to expand...
Click to collapse
Any details for this?
[RiS] said:
LPChris and myself have started a project on google code, we expect to have some working code soon.
Anyone who wants to contribute with ideas, testing, etc.. is welcome!
Click to expand...
Click to collapse
I had actually registered a domain with this type of thing in mind in the past. androidupdatetracker.com. I would be happy to donate it to the cause
Darkrift said:
Any details for this?
Click to expand...
Click to collapse
So far we have an empty Google Code project going. Like I said before, I haven't been able to connect my environment to the google code cvs. I'm hoping to be able to spend some time on it tonight if I can. If anyone else wants to help out here that has some free time then I'm open to it. I've just been busy with work and my GasBot application.

How and why do you people know all of this?

I had a friend root my phone and I know if I want to flash a new build I rename the file update and drag it to my android folder then restart the phone a certain way and press alt s to load the build.
I love my g1 and the 1.5 build Im using but I cant get any further because Ive scoured the internet and these threads and I just cant figure out what all of this computer jargon means and I dont understand how anybody does know without taking classes in it.
I think I should make a nandroid backup and partition my sd card to run apps but good lord what does this mean (regarding nandroid)???---
"anyone who has root on their G1 and has the engineering/dev spl bootloader [1] (or has a dev phone) + a recovery image with busybox and adbd running as root [2"
and this (regarding sd partition)???---
pre-requisite "You created the FAT32 / EXT2 combo partitions" I mean this is a PRE-REQUISITE! I found a thread regarding the fat/ext deal and didnt understand it either.
I know nobody is here to babysit but is there some website somebody can direct me to to begin understanding what Im reading, I mean I read through the sd partition for dummies thread and I literally understood MAYBE 10% of the words, if thats for "dummies" im clearly the "dumbest"
I have the will I just dont have the way, ive typed the language i dont understand into every search engine I know of and Ive learned nothing. You guys are born geniuses
and what the hell's a "script"
No offense intended, but I don't think you should root your phone or carry out any of the procedures outlined in the developer forum. Following instructions to the letter is important when you are performing unauthorized and unsupported hacks, and most of those instructions assume an intermediate-to-advanced level of computing understanding.
As far as "where you learn it", I assume it varies from person to person. Although in nearly all cases, you learn it slowly by absorption when you are immersed in computing culture. Eventually if you lurk enough and see a word enough times in a particular context, you gain an understanding of what it means without being explicitly told.
You learn as you read through forums and threads and asking questions. If you're lucky, someone will explain it to you.
A script is like a programming language that controls a software application.
Nandroid is a tool or script you can use to backup your phone. It takes a bit of knowledge to restore from the backup though and requires a separate thread
You can read all about SPL's here: http://forum.xda-developers.com/showthread.php?t=455860
Can't help you with busybox/adb/recovery image right now.
FAT32 and EXT2 are just file type partitions. Think of a hard drive as a box. You put a divider cutting the box down the middle to split it into 2 compartments so each compartment can store something different. That's essentially what you do to a SD card when you create a FAT32 and EXT2 partition.
I learned all this by totally screwing things up, then reading, and reading some more. Then using the search function of the forum and of course more reading.
Now I understand a good deal about ADB, terminal, and the many, many other things that come with a rooted phone,,
I don't agree with the post that said if you don't get it don't try it.....
But that is cause I learn by doing...
As mentioned, doing this is a little complicated. The wrong step can temporarily brick your phone and then you'd have to know how to fix it, which in a way also requires a certain level of knowledge. It's best to learn and absorb the information first and to NOT be in a hurry to implement what you learn.
DMaverick50 said:
I had a friend root my phone and I know if I want to flash a new build I rename the file update and drag it to my android folder then restart the phone a certain way and press alt s to load the build.
DMaverick50 said:
This will be invaluable to fixing a botched up hack. Although, many times you'll also have to wipe (alt-w) to clear out your personal settings and personal data.
DMaverick50 said:
I love my g1 and the 1.5 build Im using but I cant get any further because Ive scoured the internet and these threads and I just cant figure out what all of this computer jargon means and I dont understand how anybody does know without taking classes in it.
Click to expand...
Click to collapse
As mentioned, we all just love the stuff, and pick it up as we go. Most of us read extensively and have well set backgrounds on computers. If you want to get your degree in brain surgery, it helps to have basic knowledge of human anatomy, first.
DMaverick50 said:
I think I should make a nandroid backup and partition my sd card to run apps but good lord what does this mean (regarding nandroid)???---
"anyone who has root on their G1 and has the engineering/dev spl bootloader [1] (or has a dev phone) + a recovery image with busybox and adbd running as root [2"
Click to expand...
Click to collapse
Nandroid is a backup program build into the... "recovery mode" for lack of a better description. It's where you do the alt-s at. Alt-b creates a backup of your system. To restore it, you must read the thread sticky that walks you through it.
DMaverick50 said:
and this (regarding sd partition)???---
pre-requisite "You created the FAT32 / EXT2 combo partitions" I mean this is a PRE-REQUISITE! I found a thread regarding the fat/ext deal and didnt understand it either.
Click to expand...
Click to collapse
As mentioned, FAT32 and EXT2 are types of filesystems. Think of it as being told to store a box in a wearhouse. The filesystem, in a sense, would be like the isles, shelves, etc. that help you not just have a giant pile of stuff.
This is asking you to have an SD card that has been partitioned off into two partitions (a giant wall in the middle of the wearhouse) where on one side you have one way of storing things that is easily understandable by the average joe (windows, linux, apple) and one side that is much more complicated but much more efficient to store things that only the wearhouse manager understand (linux.)
DMaverick50 said:
I know nobody is here to babysit but is there some website somebody can direct me to to begin understanding what Im reading, I mean I read through the sd partition for dummies thread and I literally understood MAYBE 10% of the words, if thats for "dummies" im clearly the "dumbest"
Click to expand...
Click to collapse
No. We all started somewhere. Nobody here came here and understood everything over night. Most of us have YEARS of experience in the computer field, if not decades. As far as knowledge here, it takes months of READING to really start to understand things. Once you do, THEN things will make sense and then you're less likely to break your phone.
DMaverick50 said:
I have the will I just dont have the way, ive typed the language i dont understand into every search engine I know of and Ive learned nothing. You guys are born geniuses
and what the hell's a "script"
Click to expand...
Click to collapse
Read, read, read. That's my way.
And like mentioned, a script is just what it is in real life. Something you follow. If I gave you a movie script, you follow what it tells you to do while in the movie. In the computer world, it's the same. You write a script that tells the computer what to do.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
I see you joined few days ago. I suggest you start from the begining. i.e. read all stickies. Every questions that you've asked here was asked before by someone else and answered multiple times.
To offer a glimpse of hope here: it's a lot easier for n00bs now as more and more people get comfortable with Android and Android tools and it's not just 2-3 guys who can answer a question. Also, at this point we have apps that will run a script for you, move your apps and caches to SD, overclock you CPU, etc etc etc.
Welcome to XDA and good luck
For the APPS2SD do this....
http://forum.xda-developers.com/showthread.php?t=500387
OH, first backup EVERYTHING on your SD card to your desktop.
Open the terminal program... I always do this **** in adb cause you wont catch me dead trying to type and read a small screen when adb is copy and paste.
type
su
cd /data
wget http://64.105.21.209/bin/lib/droid/sdsplit
chmod 555 sdsplit
/data/sdsplit -nd -fs 7500M (thats for an 8 gig card. so adjust it depending on what side card you have 4 gig = 3500M etc...)
Now you need to make sure you have an APPS2SD rom... That makes /system/sd available. Now you have to copy and make "aliases" from the old spot to the new... Million threads on that one. Just wanted to give props to "MartinFick"s script (bunch of commands in a file I guess you can say. You can run any partitioning sw on windows 7 or I would of gone that route...
i appreciate the replies. Ive been on this forum for about month checking throughout the day (instead of paying attention to my professors) but only signed up recently to post.
I do understand the concept of nandroid and the sd partition, I just get lost in the processes very quickly. In my life Ive only learned by screwing things up so im ready for almost anything. I dont want to get stuck without a phone though so Ill definitely try to get a better understanding before trying anything dramatic. I guess Ill keep looking for some website that has a search where I can just type in all of the language I dont understand, surely this type of site exists I just havent found it yet...
southsko said:
For the APPS2SD do this....
http://forum.xda-developers.com/showthread.php?t=500387
OH, first backup EVERYTHING on your SD card to your desktop.
Open the terminal program... I always do this **** in adb cause you wont catch me dead trying to type and read a small screen when adb is copy and paste.
type
su
cd /data
wget http://64.105.21.209/bin/lib/droid/sdsplit
chmod 555 sdsplit
/data/sdsplit -nd -fs 7500M (thats for an 8 gig card. so adjust it depending on what side card you have 4 gig = 3500M etc...)
Now you need to make sure you have an APPS2SD rom... That makes /system/sd available. Now you have to copy and make "aliases" from the old spot to the new... Million threads on that one. Just wanted to give props to "MartinFick"s script (bunch of commands in a file I guess you can say. You can run any partitioning sw on windows 7 or I would of gone that route...
Click to expand...
Click to collapse
The steps seem doable but it says to use jesusfreak's build, i am on dude's will this be a problem? thanks
Simple...we are the borg! The apparent knowledge is actually just one giant shared conscience, connecting our minds together from the time we log onto XDA...and we think you should join us. *Evil Laugh*
knight4linux said:
Simple...we are the borg! The apparent knowledge is actually just one giant shared conscience, connecting our minds together from the time we log onto XDA...and we think you should join us. *Evil Laugh*
Click to expand...
Click to collapse
ROFL.
DMaverick50 said:
I guess Ill keep looking for some website that has a search where I can just type in all of the language I dont understand, surely this type of site exists I just havent found it yet...
Click to expand...
Click to collapse
I'm not sure if that exists. You see, almost all of those terms were invented by people in THIS forum.
DMaverick50 said:
The steps seem doable but it says to use jesusfreak's build, i am on dude's will this be a problem? thanks
Click to expand...
Click to collapse
I did it on the dudes. Any (i think) build that enables the ext partition to be mounted to /system/sd will work...
So can I partition while on this regular build and then flash the apps2sd build or do I need to first download an apps2sd build and then do the actual partition?
some help
When it says to use the jf build that's just the one he used and is familiar with the steps the root hack the phone are the same no matter what. Now the thing you want to do is learn one proccess and stick with it weather it be abd, fastboot, or the sdcard method for beginners or noobs I do not suggest adb or fastboot cause it require knowing how to use a comand line and if you don't know what that is then don't try it. But like everyone says read about it first before you take the plunge also since you have a friend who can do it have him show you how he does it sometime seeing it done on the fly or being told while doing it with someone there to take over if things go wrong is always good. Have fun flashing and once you figure it out do it a few time to get used to it
DMaverick50 said:
I had a friend root my phone and I know if I want to flash a new build I rename the file update and drag it to my android folder then restart the phone a certain way and press alt s to load the build.
I love my g1 and the 1.5 build Im using but I cant get any further because Ive scoured the internet and these threads and I just cant figure out what all of this computer jargon means and I dont understand how anybody does know without taking classes in it.
I think I should make a nandroid backup and partition my sd card to run apps but good lord what does this mean (regarding nandroid)???---
"anyone who has root on their G1 and has the engineering/dev spl bootloader [1] (or has a dev phone) + a recovery image with busybox and adbd running as root [2"
and this (regarding sd partition)???---
pre-requisite "You created the FAT32 / EXT2 combo partitions" I mean this is a PRE-REQUISITE! I found a thread regarding the fat/ext deal and didnt understand it either.
I know nobody is here to babysit but is there some website somebody can direct me to to begin understanding what Im reading, I mean I read through the sd partition for dummies thread and I literally understood MAYBE 10% of the words, if thats for "dummies" im clearly the "dumbest"
I have the will I just dont have the way, ive typed the language i dont understand into every search engine I know of and Ive learned nothing. You guys are born geniuses
and what the hell's a "script"
Click to expand...
Click to collapse
heheh .. didn't we mention we're all a bunch of geeks - LOL - genius cannot be found here (pointing at self) .. i have been known to have a couple bright ideas now and again tho
"script" is just a funny way of saying "we did the work for you" .. all those lines of text that nobody wants to type over and over and over are all neatly packed into one little file .. type the name of the file and VOILA!! all those lines of text are spit into the little pocket sized computer and you have no blisters on your thumbs to show for it
now .. if we could only find a script that got us thru rush hour traffic
DMaverick50 said:
So can I partition while on this regular build and then flash the apps2sd build or do I need to first download an apps2sd build and then do the actual partition?
Click to expand...
Click to collapse
I did what I posted then flashed the APPS2SD rom and then transferred everything over, but when I flashed it it still had all my apps so I would say you can do it before also.
Remember to nandroid backup before you try and move all your files.
OT
Once you get adb running sending all these commands are so easy as you copy and paste and you can restore your phone back the way it was in 2 minutes...
southsko said:
I did what I posted then flashed the APPS2SD rom and then transferred everything over, but when I flashed it it still had all my apps so I would say you can do it before also.
Remember to nandroid backup before you try and move all your files.
OT
Once you get adb running sending all these commands are so easy as you copy and paste and you can restore your phone back the way it was in 2 minutes...
Click to expand...
Click to collapse
i see. im so much more confident attempting the partition after these posts im tempted to ask for the same help with nandroid since ive looked through the threads. But I guess i should head to one of them and start asking questions i know they run a pretty tight ship around here with duplicate threads and off-topic ones and what not...
nandroid was so much harder to read in the thread than it actually is
I'm hoping this thread may help other people.... and will try and help till I run out of beer.. anyway
restoring a backup when you are can connect with fastboot is so simple. Once you get adb working then dl and put fastboot in the tool dir. Then you go to your sd card /nadroid/randomcrap/whatever date/ and copy the 3 files below into the same tools directory.
from the command line on your computer type
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash data data.img
I flashed to one of the first cupcake roms and was like **** this! flashed right back to my old backup. ahhhhh!!!
southsko said:
nandroid was so much harder to read in the thread than it actually is
I'm hoping this thread may help other people.... and will try and help till I run out of beer.. anyway
restoring a backup when you are can connect with fastboot is so simple. Once you get adb working then dl and put fastboot in the tool dir. Then you go to your sd card /nadroid/randomcrap/whatever date/ and copy the 3 files below into the same tools directory.
from the command line on your computer type
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash data data.img
I flashed to one of the first cupcake roms and was like **** this! flashed right back to my old backup. ahhhhh!!!
Click to expand...
Click to collapse
Get ready to laugh..............adb? Fastboot? Everything else looks straight forward ( I assume I'm copying the 3 things to sd thru cpu)...
lmao...

Trouble making goldcard... for Cliq...

yeah, I know, I know. Not a cliq forum.
If asking a Cliq question on the magic forums is in excessively poor taste, feel free to delete this thread, mods!
Anyway, I can't figure out how to retrieve the CID. The command for the Magic fails:
[[email protected] tools]$ ./adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid/sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory
i don't know if it's POSSIBLE to create a gold card for the Cliq, or if a gold card would even be useful, but by god I'm not gonna stop until I brick this thing..
keenerb said:
The command for the Magic fails:
[[email protected] tools]$ ./adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid/sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory
i don't know if it's POSSIBLE to create a gold card for the Cliq, or if a gold card would even be useful, but by god I'm not gonna stop until I brick this thing..
Click to expand...
Click to collapse
I don't know if its possible to gold card that device but isn't this the command for getting the cid?
Code:
./adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid
You're absolutely right, the copy/paste screwed it up. That is the command I used.
./adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid
/sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory
goldcard - HTC
I was under the impression that the gold card was specific to HTC devices
byt3b0mb said:
I was under the impression that the gold card was specific to HTC devices
Click to expand...
Click to collapse
Yeah. You're probably right.
From what I have read, but have yet to try, the cliq has the same image for the recovery rom, image ie: the ! In a triangle over a g1 looking device
So there are some things that may. Be similar.
Bhang
keenerb said:
Yeah. You're probably right.
Click to expand...
Click to collapse
goldcard can be made using linux with the card in a card reader
that wasnt what i was talking about - i was saying that goldcards more than likely only used on HTC devices -
keenerb said:
yeah, I know, I know. Not a cliq forum.
If asking a Cliq question on the magic forums is in excessively poor taste, feel free to delete this thread, mods!
Anyway, I can't figure out how to retrieve the CID. The command for the Magic fails:
[[email protected] tools]$ ./adb shell cat /sys/class/mmc_host/mmc1/mmc1:*/cid/sys/class/mmc_host/mmc1/mmc1:*/cid: No such file or directory
i don't know if it's POSSIBLE to create a gold card for the Cliq, or if a gold card would even be useful, but by god I'm not gonna stop until I brick this thing..
Click to expand...
Click to collapse
You should run at first
adb shell ls /sys/class/mmc_host/
to see which mmc numbers you have... may be you have only mmc0 or your future goldcard is mmc2
then you should change string to get CID according your right mmc-number...
ps. I don't know, why you are using goldcard on Cliq...
ya ummm cliq will not take the gold card due to the dif in and or no HTC spl type. the goldcard is for bypassing the CID check on HTC devices and makes the current floppy ok to read. So i dont know if this would work at alll or even close! But then again why the hell not. I dont have one or i would try bricking one for the community lol. make sure you have a good fire sdcard(kingston sdcard) and have made a goldcard before. if you require help on making one let me know and ill make step by steps to help the best i can. i can also provide screenys for you or all you, yet i still believe the goldcard will fail and i have no idea what fastboot or any kind of recovery looks like. maybe you can provide some pics of what your holding of cam, menu, select or whatever button does something at boot. that will probably help the most. fosho.
hate to beat a dead horse
I have google alerts for "root cliq" and its derivatives I search google everyday for any string I can think of that might hit some site where vthere is vany serious work going on to root the cliq, I think we were spoiled buy the first g1 rom which droped all keyboard input to a root shell, which is why it was so easily rooted(ie if you made a contact named reboot, it would reboot)
It wasn't much of of a hack, so I'm thinking they must have learned from the mistake and got it locked up as best they can...
Also it seemed in the early days of the g1 that whenever the community needed somthing(ie:dreamimg.nbh or whatever that vfilename was) it was "leaked" so without such help it will take a while to do it the old fashioned way, they will have to earn it.
Anyway has anybody found a cliq forum that could take the place of xda, since it doesn't seem there will be a cliq forum here.
All of this sucks, if I hadn't cracked the screen on my G1s case I would not have gotten the cliq, I hope it gets rooted but until it does I will keep my G1 going after I replace the case.
Bhang
Edit
This wasn't where I planned on putting this post but its the same topic, but please move it anywhere you think is best, I'm an idiot

For extreme noobs like myself info reg rooting & clockwork recovery

About a day ago I didn't know anything about rooting and what it was but now I know to a degree from many hours of reading.
These are the steps I did.
You have to make sure that you choose the correct one click root method for the DI07 patch. Obviously you need to put the epic in debugging mode and click on the appropriate run.bat command and let the batch run. That part wasn't to hard for me, pretty much self explanatory.
Also to check for "root", to make sure your epic is rooted, download titanium backup from the android market and if it launches your epic is rooted and plus it will say root status "ok"..
The part I had issues with was with the one click clockwork recovery. Especially when people started talking about typing in commands in the dos prompt. I'm ok with doing that but it wasn't explained in full detail regarding what to do.
So first thing that I had to figure out was what they meant by c:/android-sdk-windows/tools and where was this located. I didn't have this file on my cpu on the c: drive and i was lost at this point being that I didn't know where to get it. I later found out and if im wrong please tell me you had to create your own folder on your c: drive so you can point to it from the c: prompt in dos. So I went ahead and did that.
In the tools folder from android-sdk-windows folder you would go ahead and place the contents of the clockwork recovery files in the tools folder. So wahla I now have a folder I can point to in the dos prompt. At this point I still didn't know if this is going to work or not but I felt like I was close.
Next step was to follow "open up command prompt and redirect it to your C:/android-sdk-windows/tools folder and then run the following code."
adb devices
adb shell
su
remount rw
exit
exit
first you need to type cd C:/android-sdk-windows/tools and press enter to point to that folder. And run subsequent commands from there.
If when you type in adb devices and a device does not pull up that means that the usb drivers are not installed properly for the epic phone and you need to look into that first.
After you run those commands now you can go ahead and run the run.bat file for the clock works recovery. But also make sure your still in debugging mode.
This might take a few tries but it will eventually work and if it does not work after trying to flash the recovery and the epic reboots pull the battery (reinstall battery) and then try to go into recovery by pressing the vol down--camera--and power button at the same time and you should see a green recovery screen.
I wish someone had typed something like this sooner so I wouldn't of had issues.
I hope this helps at-least one person.
Good idea except it's already been done :-\
http://forum.xda-developers.com/showthread.php?t=786305
Whosdaman said:
Good idea except it's already been done :-\
http://forum.xda-developers.com/showthread.php?t=786305
Click to expand...
Click to collapse
I know I was trying to follow that but there was parts missing that I didn't understand for ex. the part where I had to create the actual folder it never stated to create a folder but it wanted you to point to it in the dos prompt. And yes that tutorial did help out tremendously but i was still a little lost. My explanation fills in the missing gaps or parts. But thank you for pointing that out.
Maybe with noobnl latest version of the clockwork installer (version 32 with mount rw included in the script) you no longer need to go into adb?
jimmyz said:
Maybe with noobnl latest version of the clockwork installer (version 32 with mount rw included in the script) you no longer need to go into adb?
Click to expand...
Click to collapse
That is correct. Version 32 is truly one-click.
mattallica76 said:
That is correct. Version 32 is truly one-click.
Click to expand...
Click to collapse
Thats true
I'm not quite as noobish as the OP but I'm a complete noob to Android and -nix os's in general (besides a tiny bit of unix experience and a non-fear of command-line interfaces). Still, I have enough fear of the process to wait until Epic ROMs are a little further along and more refined to the degree that that's possible. If I weren't quite so noobish I'd dive right in.

[Q] getting the mesmerize in a few days!!! adb help

hello xda!!! been doing alot of reading here and desided that i wanted to be part of the action...with that said...
did some reading on how to get clockworkmod on the mesmerize and have no clue how in gods name to use adb...is there a how to that could help me better understand how to use it and get this on my phone after i have it rooted...soory for the noob question but as you can see. im a noob at this. only phone i have really modded is the samsung acclaim (which btw is a weak phone but good for the noobie droid user) so any help is greatly appreciated. thanks in advance guys and i look forword to helping devs by testing and such
adb, or android debug bridge, is a tool distributed with the android sdk. In current versions of the sdk, it is located in the platform-tools folder, which only appears after you download the sdk tools after downloading the sdk zip itself.
It should be noted that usb debugging needs to be enabled on your device in order for adb to work properly. This can be turned on under: Applications > Development
To use adb, you open up a command window if on windows or a terminal emulator if on linux or mac. Type:
adb <command> [options]
Where command is any one of the commands listed when typing "adb help" and options are things like file names, paths, or other flags.
Common commands include:
pull
push
shell
pull copies a file on your device to your current working directory (or the optional specified location)
push copies a file from your computer onto the device
shell invokes a simple shell on your device allowing you work in a linux like environment on your device
There is a reboot command that is sometimes helpful but that can always be done using the power button on the device.
You will probably only use push and shell.
Examples:
adb shell
adb push update.zip /sdcard/update.zip
Hope that clairifies things a bit.
yes it does sir...so with those commands i can "push" the clockworkmod onto my mesmerize and have that beautiful recovery? the only directions i found where using the adb. if there any way i can screw this up ei: mistyping or will it just say invalid command or something? and again ty for the fast response!!!
you got the thanks for that...lol...im grateful for any and all help
Typos shouldn't hurt. If it's a bad command it just won't execute. If it's a bad filename you may have to clean up a bit (like remove the file that is improperly named or in the wrong directory) but nothing fatal should happen.
alright...i feel a bit more confident that i can make clockworkmod happen when i get my mesmerize and get it rooted...any other suggested mods for spped?
You should install a custom ROM, (I use Super Clean, some people prefer the pick n pack) then a theme you like from the themes and apps section, then install the voodoo lagfix kernel. Everything mentioned can be found in the Mesmerize forum.
yea i seen voodoo but wasnt quite sure what exactly it does. as far as the pick n pack or super clean...could you tell me the difference or does it say it on the page where it was posted and im just blind and didnt see it?
BakedTator said:
yea i seen voodoo but wasnt quite sure what exactly it does. as far as the pick n pack or super clean...could you tell me the difference or does it say it on the page where it was posted and im just blind and didnt see it?
Click to expand...
Click to collapse
Its obvious you didn't read the threads.
Sent from my SCH-I500 using XDA App
ADB is nice and all ..
But there other ways to install and do everything needed to Flash a ROM or Kernel.
How to get ADB up and running.
And a couple other great links for learning more.
http://forum.xda-developers.com/showthread.php?t=502010
http://forum.xda-developers.com/showthread.php?t=872128
If you look in the Clockwork Mod thread here in the Mez forums there are walkthroughs on BOTH ADB method to get CWM working and sans ADB methods.
And again. Always Read.. Read again.. if all else fails.. Read once more.. And ask.. Everyone here is very informative and glad to help when we can.
I knew nothing of Android before I came here and a month later I know enough now to be dangerous.. LOL
skitzo_inc said:
Its obvious you didn't read the threads.
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
i did read just havnt read over it several times to see if i have missed anything...just a lil scared of adb because i have never used it before..i have an acclaim and could do everything from the swupgrade flasher for the moment and that made life easy(aint tryin to brick a 600$ phone)
to Sighcosis
thanks for the link...will read over them tonight seeing as my phone will be here no later than Wednesday and i wanna have everything downloaded and ready to roll cause the second i get this phone imma start fashing it and getting everything i want on it...again thanks for all the help guys...now more reading

Categories

Resources