Trouble making goldcard... for Cliq... - myTouch 3G, Magic Android Development

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

Related

How about a ROM DUMP?

Hey there!
I was wondering if anyone that allready has this phone has managed to dump the rom on the phone? Iam asking on behalf of the people at the Diamond forum.. We would like to have our hands on the Android OS..
~D
I think the folks at the diamond forum are playing a joke on you, I don't think anyone at this site has a G1 or a Dream yet. a bunch of us will though, come OCT 22nd.
damnitpud said:
I think the folks at the diamond forum are playing a joke on you, I don't think anyone at this site has a G1 or a Dream yet. a bunch of us will though, come OCT 22nd.
Click to expand...
Click to collapse
I know that.. I just made the thread so that WHEN the device will come out the thread is already made..
Give Me The Dump
while you're at it, could anyone maybe break into a store or possibly google headquarters (whatever is more convenient), get their hands on a g1, dump the rom, and i dunno, make it work perfectly with the kaiser?
say by monday morning?
thanks a bunch.
Man, these Dream forums sound constipated. Take a dump and get over it, people!
ASAP
I will asap since I will need to neuter all the google phone home and that *G.D.M.F'n.* mandatory google login out of it before I use it.
How do you dump the ROM?
I'm sure having the phone in our hands would be the first step.
I think there are people with the G1 who might do a dump if they knew how.
G1 is still in limited quantity. Must wait some time for rom dump tools.
Found A Dump File!!!!!!!!!
http://forum.xda-developers.com/forumdisplay.php?f=448
http://groups.google.com/group/android-developers/browse_thread/thread/277a73b32a02f26a?hl=en
ryanbradley said:
http://forum.xda-developers.com/forumdisplay.php?f=448
http://groups.google.com/group/android-developers/browse_thread/thread/277a73b32a02f26a?hl=en
Click to expand...
Click to collapse
I dont think this is wat we are looking for...
Its already a year old, and its not a dump from the G1 but 1 from the emulator...
Guys, I am a T-Mobile employee and I went to the event in New York. Its not surprising for somebody to have the phone right now, but luckily somebody who reads the forums haves one!!
I used to follow the Kaisers ROM development until I sold it. Now I have the G1
I will gladly dump the rom and help this community if somebody told me how to do so.
Reply to this message and please send me a email to [email protected] with instructions on how to do it and I will do it tonight EST after work.
Thanks!
raymondf13 said:
Guys, I am a T-Mobile employee and I went to the event in New York. Its not surprising for somebody to have the phone right now, but luckily somebody who reads the forums haves one!!
I used to follow the Kaisers ROM development until I sold it. Now I have the G1
I will gladly dump the rom and help this community if somebody told me how to do so.
Reply to this message and please send me a email to [email protected] with instructions on how to do it and I will do it tonight EST after work.
Thanks!
Click to expand...
Click to collapse
I think if you ues the ADB tool in the android SDK it should be
Code:
adb shell mount
adb shell dd if=/dev/???? of=/sdcard/fs.bin
Whatever mount lists is what you would put in for ???? in the dd if
I also have one (preproduction model/debug model), I'm not sure how exactly to use the adb tool. Anyone care to enlighten me?
Valicore said:
I also have one (preproduction model/debug model), I'm not sure how exactly to use the adb tool. Anyone care to enlighten me?
Click to expand...
Click to collapse
you use it from the cmd prompt and it's in the tool folder in the SDK....
I get the impression that a less 'technical' response would be your best shot here if you're serious that you want a copy of the Android o/s dump
As in (if this were me....a complete 'non-tech' type) a response involving *zero assumed tech knowledge*......eg 'Whats' an SKD???'...or.....'cmd prompt??, where?/how?'
So....
1. Plug phone into PC and start activesynch[or whatever]
2. File explorer and search for file *.*....
Just for example.....
Just trying to make a suggestion that's all - speaking from the point of being a complete tech fkwit myself....and also being ridiculously eager to have Android delivered to all the tech genii here so I can hopefully get it on my Diamond (and soon to have HD as well!)
The SDK is the developer's kit that you can download from Google. It contains a number of tools for use in developing applications for the platform, among them an emulator (for testing apps as if you're on a real android phone) and the ADB tool for accessing the hardware over a USB connection.
The ADB tool is run on the command line (no graphical interface). That's usually a bash prompt found in any console/konsole/terminal in Linux or by running cmd.exe in Windows. It allows the user to execute standard linux shell commands on the phone's filesystem.
Code:
C:/>adb shell ls
For example, the above command runs adb, tells it to issue the "ls" shell command, which gives a directory file listing (similar to the "dir" command in DOS.
Anything beyond that is above my head as of yet, since I don't have any Android hardware to use the tools on.
I can see we're never going to get a ROM dump, not at this rate...
I have no clue how to do it either, nor do I have a G1, but I'm reading your instructions anyways and it still doesn't make sense.
Why can't anyone just post exact step by step instructions? Preferably not using abbriviations or acronyms for 90% of the words.
Also he asked that the instructions be emailed to him.

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...

SwitchRom from computer

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;
}

[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

Help for a total noob needed.

Hello everyone. It has been a year since i bought my Captivate and i just put my hands on this awesome device (Infuse 4G).
I feel a little retarded as i completely forgot who i donated to on this forum for helping me to unlock my captivate when there was no soft for it in the market yet. I would like to thank you again whoever it was.
Anyway, I would like to ask you to help me to get rid of At&T crapware and get a nice clean fast rom. I will also need instruction for a total retard. Flashing a phone is not an everyday business for me.
Thanks
4biddenskill said:
Hello everyone. It has been a year since i bought my Captivate and i just put my hands on this awesome device (Infuse 4G).
I feel a little retarded as i completely forgot who i donated to on this forum for helping me to unlock my captivate when there was no soft for it in the market yet. I would like to thank you again whoever it was.
Anyway, I would like to ask you to help me to get rid of At&T crapware and get a nice clean fast rom. I will also need instruction for a total retard. Flashing a phone is not an everyday business for me.
Thanks
Click to expand...
Click to collapse
Super One Click for root and Infused for ROM.
http://forum.xda-developers.com/showthread.php?t=1105413
Also, this belongs in the General Forum.
* Download and extract the .zip = done
stuck at:
* Use a terminal emulator or ADB Shell and mount system as read/write.
unfortunately this is where i have no idea what terminal emulator is and how to use it, nor what ADB shell is.
Download root explorer, go into your base dir and click the "mount as r/w" button at the top
4biddenskill said:
* Download and extract the .zip = done
stuck at:
* Use a terminal emulator or ADB Shell and mount system as read/write.
unfortunately this is where i have no idea what terminal emulator is and how to use it, nor what ADB shell is.
Click to expand...
Click to collapse
Which zip have you downloaded and extracted?
Have you read any instructions that are all over this site and many others?
There are literally video tutorials that go step by step from stock out of the box, to rooted and installing a ROM.
Search is your friend. Your best bet is to do some reading before you attempt to install a custom ROM. It's actually quite simple to do, hell I have upgraded my ROM while driving from the hanger at work over to the airport terminal.
However, if you don't know what you are doing, and aren't familiar with the concepts, you can and most likely will end up with a nice shiny brick. (soft brick most likely)
So, find the INFUSED rom thread and start reading and looking at the tutorials he has posted before you take another step. Then, and only then, if you still have questions, people will be very happy to help you out.
Also, as for unlock - if you read through the various threads on this forum, there are two methods covered for obtaining the SIM unlock code for our phones. One requires your phone to be rooted already, one is a script that roots the phone, extracts the code, and then optionally undoes the rooting.
Thanks a lot guys. I really should slow down and read stuff properly. Will let u know how im doing. Thanks again for being there.
Sent from my SAMSUNG-SGH-I997 using XDA App
4biddenskill said:
Thanks a lot guys. I really should slow down and read stuff properly. Will let u know how im doing. Thanks again for being there.
Sent from my SAMSUNG-SGH-I997 using XDA App
Click to expand...
Click to collapse
Good insight.
Closed.

Categories

Resources