[Q] [Q&A]Testing Rom - Samsung Infuse 4G

I'm kind of a noob but im trying to learn how to create a rom. How can i test a rom without flashing it on my phone is there some type of emulator i can use? I tried ADK Manager but i dont know how set it up to the specification for infuse.

Best way is to load it to your phone, that way you can experience what others are....or find a second phone....to test with...
Sent from the Black Star`d ICS GNote.

I use adb to push modified apk and jar files to my phone. You can stop the phone, mount system as read/write, copy over the new files to their spots in system, remount as read only, and reboot all by using adb. You want to test small changes at a time, and one apk at a time so you know what works and what doesn't on the phone.
Sent from my SAMSUNG-SGH-I997 using Tapatalk 2

Related

Nandroid Images For The Emulator

While reading this thread on how to run different images in the emulator, I came across ggolemg's directions on how to accomplish this:
Code:
thats the easy part
do a nandroid backup
copy the sdk/platforms/android-1.5
to something like sdk/platforms/MINE
go to your AVD directory AVD/whateveryoucalledit
open up the config.ini
edit:
skin.name=HVGA
skin.path=platforms\MINE\skins\HVGA
image.sysdir.1=platforms\MINE\images\
go to your nandroid backup on your sdcard
copy system.img
go to sdk/platforms/MINE/images/
and paste the nandroid system.img
now run your AVD and it will boot that system.img
im running CyanogenMod rom right now in the emulator
hint* number pad 7 with numlock off in the emulator is how to open up the hardware keyboard
This worked perfectly for me. However, I'd like to mess around with all the ROMs out there, but short of installing them and doing a nandroid (thereby making the testing pointless) or doing the more complicated method of pulling them off via the mkfs.yaffs2 tool, there isn't an easy way to do this.
So I was wondering if you guys would be interested in putting up clean nandroid backups of some builds for testing in the emulator?
No one? Does anyone think this is a good idea?
i make nandroids of every build i try, but they are on my external drive(about 300 miles away for the next week) i can post the system and boot next week for a few older roms, but lately i've been using dude builds only.
it seems like a decent idea but i would think the best way for an individual to do this would be to use the mkfs.yaffs2 tools, wouldn't you rather see what it is like on the actual phone????
Yes, to an extent. I imagine the rom would run faster in the emulator, but it's still fun to check it out.
Maybe I'm not entirely familiar with the yaffs tool.
So I tried to use this method to load my Nandroid' Backup from before I installed CyanogenMod on my g1. Only problem is when I boot the Nandroid System Image on the emulator, it starts out at the t-mobile/google sign-in screen. The phone/emulator won't let you get past that until you sign in with google, but since the emulator has no data connection, I can't sign-in. Any help or suggestions would be appreciated.
Thanks,
Dave-O
im trying to do this with the new 2.1 android and my first nandroid backup and it dont work.. anyone know how to do it right please??
im using a nandroid system.img of my nexus one... i found this thread on google
I've tried this method and never got a system.img to boot in the emulator. It just froze at the bootloader screen (no logcat either). Is that what happened with yours?
Sent from my T-Mobile G1 using the XDA mobile application powered by Tapatalk
the same happens with me... :S i need it
If someone knows a solution I'd like to know. Does it involve building a separate kernel/boot.img for the emulator... or maybe just some changes in build.prop... both? I dont know.
Sent from my Droid using the XDA mobile application powered by Tapatalk
Sorry for pulling the old post but no one seemed to continue figuring this out.
As for the system.img pulled from Nandroid, it should work.
I think you need to sign the image file.
Any one knows how to do this?
See links below, the guy who wrote that made the system.img work, I've tried it and it works.
http://android.modaco.com/content/general-discussion/289928/testing-getting-an-emulator-up-and-running-a-full-rom-with-the-market-etc/

How do I use a custom rom boot.

I would like it if someone could tell me how to get/use a custom rom boot cause I really want one and haven't the slightest idea cause I'm tired of seeing the sprint 4g start up lol.
Sent from HTC EVO 4G via xda app
Well if you are rooted, then go donwload one of the many custom boots on this site. Download the bootanimation.zip (and sound file if its included) to your phone. Then go grab a program like astro or root explorer and copy and paste the 2 files into /system/media. I've done it this way a few times and have never had a problem. Next time though you should use the search feature im pretty sure theres a whole thread dedicated to it.
I searched for help first but they didn't explain it the way you did. I'm going to try your method. I hope it works, I wonder if someone could make one for me..
Sent from HTC EVO 4G via xda app
I'm lost, I can't really find the boot roms I saw before, I feel dumb but I am a noob lol.
Sent from HTC EVO 4G via xda app
Here you go http://forum.xda-developers.com/showthread.php?t=708173
Do a search for UOT Kitchen they have boot options and they have flashable zips
Sent from my PC36100 using XDA App
I got a boot but I dont know where to put it and how to use it...
Sent from HTC EVO 4G via xda app
jacoballen22 said:
I got a boot but I dont know where to put it and how to use it...
Sent from HTC EVO 4G via xda app
Click to expand...
Click to collapse
Have you tried adb? or do you know how to push the files?
To be honest I done know either....
Sent from HTC EVO 4G via xda app
jacoballen22 said:
To be honest I done know either....
Sent from HTC EVO 4G via xda app
Click to expand...
Click to collapse
Then you shouldn't be messing with your phone in the first place if you don't know at least ONE of those.
I haven't tried either, all I know is that one uses the computer and the other has something to do with terminal and a bunch of codes, which is easier and I rooted my phone just fine, I'm learning..
Sent from HTC EVO 4G via xda app
it all depends on what you have I have the evo with froyo 2.2 android on it and was told it cant be rooted but i followed a video on youtube and got mine rooted you don't actualy have to flash the whole rom to get a new animation booted... just root your phone depending on what you have... i used the unrevoked method follwing a youtube video of course with windows i had to install the hboot usb thing on my evo anyways i got it rooted and the unrevoked site is just one click i got the software from unrevoked dot com... download the unrevoked 3 for whatever operating system your running on your PC... hook it up to your PC watch the youtube video tutorials they will help... don't just watch one though i spent a whole 2 weeks reasearching everything i could to root it... just incase i failed i knew how to undo it from my research... the unrevoked method worked for me... and i havn't been limited to anything i got the free tethering got full premissions i have custom lock screen and boot screen.. anyways go to the site download that theres several other files you will need like the hbooter software if your rooting the evo.. i'm not giving a tutorial on this because i spent to much time myself and knowing what i know would take this whole website to type up. ok so
back to the boot screens.. the site unrevoked is just one click... litteraly start it up with the files all ready and it'll do the rest including rebooting your phone and loading into recovery everything, now you will not loose everything, i did the root and lost nothing but just incase because there is always the chance of errors... get an app called astro... to back up all of your installed apps and an app called MIQ to backup your contacts, calandar, notes, everything basicly on your phone besides apps... on a website create a profile to upload too and then get one more app called SMS backup to backup all of your text messages outbox and inbox and you can restore it all later if for anyreason something is lost.. these are all free apps... now after it roots your phone it will install the clock work rom or w.e. i guess it does flash your phone with a rom but its pretty much the same exact thing and when i did it i lost nothing everything was still installed. if you have the correct files on your computer in the C drive on the root of the C drive... the directory you should have for the files you need to download are "C:\android" and thats it.. anyways again just root the phone then download an app called boot animation changer lite....
with boot animation changer lite all you need to do is have a rooted phone.. scroll through what you like and preview them and if you want it then tap it and choose your screen for me on the evo i chose "480x800" i don't know if thats the wrong one or causes problems but it hasn't failed yet its working good and looks fantastic
I used the exact same way to root my phone, I too used a youtube video and did a lot of research before doing something crazy. I got the app your reffered to me and it worked pretty good (thank you!) But now I want to figure out how to use adb or how to push boot roms from this site onto my phone and 480x800 was the correct size..I think. Your help was very descriptive and I like that. So can anyone help describe the adb method and or the push method so I can learn how to use the boots from this site? Please and thank you in advance.
Sent from HTC EVO 4G via xda app
jacoballen22 said:
So can anyone help describe the adb method and or the push method so I can learn how to use the boots from this site? Please and thank you in advance.
Click to expand...
Click to collapse
First - Do you have the EVO drivers, and the Android SDK installed on your computer? This is needed in order to utilize ADB.
If not:
ANDROID SDK
Some of the bootanimations have been made available in a flashable zip that you can install from recovery.
If you are talking about the ones that were installed during the root process under /android then yes, so how would I go about using that to install the boots?
Sent from HTC EVO 4G via xda app
OK then.
Place the bootanimation.zip, and (optional mp3 file)
Open a command prompt and cd to wherever you have your TOOLS folder in the SDK.
ex) cd c:/AndroidSDK/tools
Then you mount the device, and can push the files to your phone to this directory:
/system/customize/resource/
ex) :
adb push bootanimation.zip /system/customize/resource/
adb push SPC_animation_final.mp3 /system/customize/resource/
Then simply reboot through adb:
adb reboot
NOTE: If the bootanimation you are switching to DOES NOT have sound then you need to remove the SPC_animation_final.mp3 from /system/customize/resource/
DONESIES!

Lg Optimus V development thread

Hopefully we get an lg optimus v section. But here goes something for starters.
These different posts will contain everything you need for now (i hope who am I kidding) Any ways here is my latest deodexed rom.
Features:
Completly de-odexed
new bootanimation
no virgin mobile apps
custom bootimage
new keylayout ( camera button opens the camera not focus, side voice control is power button, changed all the buttons to stop unlocking the screen except for the menu button)
Stagefright enabled
I'm preparing some final things but I wanted to get this going.
Download here
How to root the lg optimus v use one click root more coming soon
How to get into diag mode coming soon
How to install a custom recovery more coming soon
download here
Stock Rom with su and custom bootimage only
Download here
How to remove apps using adb
To me the best and free way to remove apps from your phone is via adb. Hopefully you have some familiarity with adb if not you should be good after reading this.
First open a command prompt and type
Code:
adb remount
this will allow you to do what we need to do if you have errors then you need flash one of the roms I provided.
then type
Code:
adb shell
cd /system/app
ls
this opens adb shell commands then opens the system directory and shows you whats in it. If you are using the deodexed rom you will have nothing but .apk files in there. But if you use the stock rom then you will have .apk and .odex files in there.
look through there and figure out what apks you want to delete and then type
Code:
rm whatever.*
replace whatever with the app you want to remove
for instance
Code:
rm googlevoice.*
then type
Code:
cd ..
cd ..
cd /data/data
pm uninstall com.googlevoice
this part here changes your directory to data/data and then it completes the uninstall. You may have to guess what the name is in data/data but usually it isn't that hard. Also you can't pm uninstall apps from data/data unless they have been removed from /system/app so don't be worried about removing the wrong thing.
check your phone and you should be good to go
I'm going to get one this week. Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanks!
Are there any ROM & kernel pack with ext4 support?
r0bot said:
Are there any ROM & kernel pack with ext4 support?
Click to expand...
Click to collapse
Xiona is what I use
Xiona works really good, there are some forums with a stock VM rom with Xiona in it.
teki9 said:
Xiona is what I use
Click to expand...
Click to collapse
So Xiona has ext4 support?
Emergenscene said:
Xiona works really good, there are some forums with a stock VM rom with Xiona in it.
Click to expand...
Click to collapse
What ROMs support ext4 also?
not to bring up a dead threaad....but the optimus v really needs a home here at xda.
i just rooted my first. i tried to use a windows program called "romtools" found on the interwebz. this didnt work, though. so...after a little more searching...i found this out. maybe the opt can put this up in first post?
easiest way to root and install super user: run super one click root to obtain adb shell root. then...run z4root. neither of these two methods work on their own but if you do in that order...you will have root and super user installed. from there, you can flash a recovery using android terminal emulator...if your old school like that. i did.
after that you can flash the stock virgin with Xionia kernel and bloatware removed. get setcpu..overclock it. whatever. door is open.
hope this helps! trying to get some thank you points on the board.
back again to try to keep this thread a little bit up to date til SOME1 NOTICES THAT THIS PHONE EXISTS.
for those having the "Cell standby" battery bug....
whats that? go to setting>about phone > battery usage> if cell standby is at anywhere near 50% or over...you have this bug. antenna constantly scans even with a connection...
plugg phone into charger. toggle airplane mode. unplugg. this will clear your battery stats and will properly connect you. check your setting to see if your usage goes down.
there also seems to be a problem wil gallery. the app opens but displays nothing. no albums or anythinng. its like it cant read the sdcard. only thing i can say to do is install a 3rd party pic viewer and trash 3d gallery.
hope this helps you guys.
Awesome, thanks for this. I currently have CM7 on my Optimus V, but for some reason I can't use any adb commands with it. I can with this. Sorry if this is the wrong place to post it, but I'm still a new member. Anyone know a way to get adb working?
hey did you guys ever figure out diag mode for the Optimus V? its not like the the other Optimus devices and ive tried every key combo my little brain could come up with....im trying 2 connect it 2 QPST or CDMA..

[Q] Help Running ROM on Emulator

Sup fellas. I am wondering if it is possible to run the custom ROM posted by Robbbit in a device emulator? I have tried the following, but it is not working.
1. Flashed the Rommmmit ROM
2. Did a Nandroid backup (Not sure if this is correct, but was the easiest way I knew to get the rom in a system.img format)
3. In CMD I CD to C:\Program Files (x86)\Android\android-sdk\tools
4. Got the Android 2.2 API level and ID by entering 'android list target' in CMD
5. Created the virtual device with 'android create avd -n Rommmmit -t 7' (I changed none of the hardware options and left them all as defaulted)
6. Copied the system.img from Nandroid to 'C:\Users\<user>\.android\avd\Rommmmit.avd
7. Attempted to run emulator with 'emulator -avd Rommmmit'
All of the steps appeared to work without issue. However, when the emulator launches it sits on the black screen with grey 'Android' text and becomes unresponsive. I have tried multiple times and even tried to launch from Eclipse by going to Windows/Android SDK and AVD Manager and selecting start, both have the same unresponsive result.
If I am doing something wrong in those steps please let me know. Any advice would be appreciated. Also, if there is a better way to convert the rom from the .zip to system.img I'd like to know that as well.
(BTW, props to Robbbbit for the first custom SGS4G ROM. If you haven't flashed it, what are you waiting for???)
Coworker was doing something similar. Ill ask him for you tomorrow and get back to you if i have an answer!
Sent from my SGH-T959V using XDA Premium App
Thanks. I'd rather test mods I try to your rom in the emulator than flashing and dealing with soft bricks
No dice... He was doing something completely diffetent.
Sent from my SGH-T959V using XDA Premium App

[Q] How To, If Possible, Root With Bad Volume Keys

So, I'm attempting to root a Charge that the volume keys do not work. Apparently, 1 and 2 year olds who have great throwing ability is something the Charge, well, anything really, doesn't exactly appreciate. Normally, I root by going into the download mode, and flashing CWM, then installing the ROM. Obviously, not happening here.
My question is, has someone with more knowledge than I figured out how to accomplish this? Its running stock FP5. I really don't want to send it in because of the contract timing and wasteful of money. I'm also willing to experiment replacing parts, if someone knows anything about it...
Thanks.
Sent from my SCH-I510 (Tweaked 3.0) using xda premium
Yep. There's a jig that will force the phone into dl mode. IIRC it's branded for the gnex but it's confirmed to work on the Charge as well. http://forum.xda-developers.com/showthread.php?p=27533069
Sent from my SCH-I535 using Tapatalk 2
Hey, I had a thought of using ADB to root, and somehow forcing CWM on it, then using an app to boot it into dl mode. I've never used and before and don't know if it's possible, although, from what I read, it seems plausible. Can you offer any insight on this idea?
Sent from my SCH-I510 using xda
edji-x said:
Hey, I had a thought of using ADB to root, and somehow forcing CWM on it, then using an app to boot it into dl mode. I've never used and before and don't know if it's possible, although, from what I read, it seems plausible. Can you offer any insight on this idea?
Sent from my SCH-I510 using xda
Click to expand...
Click to collapse
If you have adb all set up and it properly recognizes your phone (something comes up when putting in the adb devices command) you can boot into download mode with
adb reboot download
Actually it's something I looked into recently for another member. I'm not saying it's not possible but I don't think we have the right tools for it. Originally ginger root was used via adb to root the charge but that's not going to work with our version of gb (assuming you could still find it). I'm not sure the format of cwm will work either. I'm not really proficient with adb so someone with more expertise might be able to get you going.
Sent from my Nexus 7 using Tapatalk 2
Awesome. I don't have it installed yet, but it doesn't look like it takes much to make it work. Plus, I have nine that isn't screwed up, so I think I'll see what I can come up with later.
On a side note, I can't post a reply to your tweaked 3.1 thread, but I ran into somewhat of a problem... run tweaktools, did the tweaks thing, phone BARELY would run. I also couldn't get a shell to run to get back in to uninstall. What I ended up doing to fix was a reinstall of SuperSU and installing a bash shell off a different emulator to get back into tweaktools. This was after I played in /system/etc/init.d awhile trying my hand at fixing it. Thought you may want/need to knoknow.
Sent from my SCH-I510 using xda
By the way, thanks for the tip. I'll report one way or another in a day or 2.
Sent from my SCH-I510 using xda premium
edji-x said:
On a side note, I can't post a reply to your tweaked 3.1 thread
Click to expand...
Click to collapse
You need 10 posts minimum to post in the Dev forums, XDA's rules.
Sent from my Droid Charge running [email protected] 3.2a enhanced by dSlice's Scripts & Tweaks
edji-x said:
Awesome. I don't have it installed yet, but it doesn't look like it takes much to make it work. Plus, I have nine that isn't screwed up, so I think I'll see what I can come up with later.
On a side note, I can't post a reply to your tweaked 3.1 thread, but I ran into somewhat of a problem... run tweaktools, did the tweaks thing, phone BARELY would run. I also couldn't get a shell to run to get back in to uninstall. What I ended up doing to fix was a reinstall of SuperSU and installing a bash shell off a different emulator to get back into tweaktools. This was after I played in /system/etc/init.d awhile trying my hand at fixing it. Thought you may want/need to knoknow.
Sent from my SCH-I510 using xda
Click to expand...
Click to collapse
Sorry to hear of the troubles - not sure what would have caused the issue with tweaktools. You weren't able to su, or you weren't able to open terminal emulator? What were you messing with specifically in the tweaks?
dwitherell said:
If you have adb all set up and it properly recognizes your phone (something comes up when putting in the adb devices command) you can boot into download mode with
adb reboot download
Click to expand...
Click to collapse
:banghead:
Sigh, I don't know why I didn't think of that lol. And I was Ninja'd. Double whammy lol
Sent from my SCH-I535 using Tapatalk 2
Okay, Found it in ADB, and am able to reboot into download, so all is well, I think.
On the tweaktools issue, I kinda did something like this...One tweak does okay, so lets install ALL of them....after that, performed the reboot, and everything went very sloooow. So, I tried to get into a term emulator, and nothing happened, the shell wouldn't even start. Blank screen. So, I tried a different outside of ROM toolbox. Nothing. So, I played around with the settings here and there, and still nothing. I then went into root browser, and started trying to manually move the tweaks out, nothing different. So, I downloaded another term emulator, "Better Terminal Emulator" and got a bash shell to at least open, was able to get into tweaktools, erase all tweaks, clear downloads. But the shells still weren't operating right. They'd open and run, but nothing would show on screen. So, a erase/reinstall of SuperSU, everything good....LOL
Well, maybe it'll help, maybe not, but here's the path I used to do this:
Visit samsung's site for the ADB download and install to c:\android-sdk\ (default)
Put USB Debugging on in phone
Start up command line and Odin 1.82
issue following in command line (notably in the c:\android-sdk\platform-tools)
Code:
adb reboot download
Odin up some Tweaked 2.2 with recovery and kernel for root
once rebooted, issue the following in ADB shell:
Code:
adb shell
su (Checked phone to be sure root was granted)
cd /data
rm -R *
cd /cache
rm -R *
cd /dbdata rm -R *
reboot, then adb reboot download.
Flashed EP4 Stock, updated,
Updated to FP5E
Once again, USB debug, adb reboot download, and Odin Tweaked 3.1 with 0302,
follow above code again, reboot, and I think I have it right....
Since the volume keys don't work on here, is there a way to screw around in the recovery mode via ADB rather than only the keys? I see ADB sees the phone in recovery, and seems to want to connect with it....Second is, is there a way to play with this in the *nix enviroment? I also have been searching for the Gingerbreak, etc to root this thing on stock, but haven't been able to do it....and last, is there a way to do a data wipe other than what I did, and think i accomplished with ADB?
Thanks
With the CWM that I am using, you can use the hard buttons at the bottom of the phone to navigate.
Sent from my SCH-I510 using Xparent Red Tapatalk 2

Categories

Resources