yashsingh1/xdaforums huggingface dataset:
[Bravo Android Development] aleeyt:
Here's how I did:

1. Run 2nd-init

2. Go to "Recovery"

3. Go to "Latest or Stable or Custom Recovery"

4. Wipe data/factory reset

5. Wipe cache partition

6. "Advanced"

7. Wipe Dalvik Cache

9. Backup and restore

10. Restore (system & data)

11. Choose file firmware MS2Ginger (2.1 by josuearisty)

12. Wait for a full load (refused from registration in motoblur)

13. With the help of adb threw the files in the following ways (libcamera.so & libcameraservice.so to system/lib folder and build.prop in system.)

14. Reboot device

15. Camera work)
[Bravo Android Development] josuearisty:
@aleeyt

Correction, I modified the rom but it was created by WALTER79, all credits goes to him and rdannar who modified to work with our BRAVOs! :)

But what exactly did you modify to make it work?

It was not only a problem in build.prop.

EDIT:

Try it and working :D its amazing see it working in MS2GINGER.

Now we have every rom for DEFY (CM7, MIUI and MS2GINGER) working perfectly in our Bravos!!

I'll try it with ms2ginger by walter79
[Bravo Android Development] aleeyt:
And what you have changed, so has earned 2.3.4?
[Bravo Android Development] josuearisty:
I fixed somethings and added spanish language which is not completly at all.

I replaced camera app and also set all icons in the rom to stock, as if there were no modifications!
[Bravo Android Development] aleeyt:
And with 2.3.6 you have not tried to do this?
[Bravo Android Development] josuearisty:
2.3.6 is ms2ginger 3.0 which is still not booting.

I have tried many times with walter79, I know we will fix it soon!
[Bravo Android Development] marquae11:
I don't believe your version was 2.1. I think it was 1.0
[Bravo Android Development] walter79:
Could some one test if MS2Ginger 2.1 for SOC camera boot without any patch?

http://www.4shared.com/zip/9EeCUVRR/MS2Ginger21-SOC-green-lens-def.html

Onlye restore system. (CWM >5.0.3.1 needed)
[Bravo Android Development] marquae11:
It will boot. And works fine... except camera of course
[Bravo Android Development] walter79:
Could you replace /system/lib libcamera.so and libcameraservice.so ?

use the files from CM7.

Maybe you have to replace /system/etc/mot_ise_imager_cfg.bin too.
[Bravo Android Development] marquae11:
Boot loop
[Bravo Android Development] walter79:
Thanks

Could you try this.

Download MS2Ginger 3.0 and restore system only.

http://ms2ginger.4shared.com

(MS2Ginger3.0-RTM.zip)

Go to bootmenu and change default boot from normal to 2nd-int. Did it boot?

If yes replace the libs only again.

Edit:

In bootmenu overclock increase vsel3 to 52-58 !!!
[Bravo Android Development] marquae11:
It won't boot.
[Bravo Android Development] marquae11:
What happened to this ROM
[Bravo Android Development] skeevydude:
What exactly do yo mean happened? Lots of activity at its defy page. Or is it just buggy? All the bugs listed on the defy page keep me from trying it. No point in using a buggy rom imho.
[Bravo Android Development] walter79:
Buggy ROM? Some small problems like all custom roms. If you do not like to test a "buggy" rom flash the latest Motorola rom without root and downgrade and you have a stable rom. This rom is not designed to be a full blur rom and adding new language to a rom will make evertime some small problems. Over 5000 downloads of MS2Ginger 3.0 and only a few people help to fix the problems.
[Bravo Android Development] skeevydude:
Sorry. I'm aware all custom roms have issues. Btw, I run buggy roms alot. With all the different cm7/9 builds, miui and its derivatives, and all the new roms popping up all over the place, its a pita to try them all.

Marquae11's question was vague, and I was curious as to what was being referred to. Wasn't trying to dis your rom in anyway.

That said, anything I can help with as a Bravo user? Test patches or logcats or whatever?
[Bravo Android Development] walter79:
Sorry, i thought this was Defy MS2Ginger thread. Next week i will start work again on get MS2Ginger3.0 working on Bravo.
[Bravo Android Development] marquae11:
I can't wait :). It's weird that 2.1 boots and works fine except for camera but 3.0 won't even boot. Is there a kernel difference?
[Bravo Android Development] marquae11:
Walter79 is a great developer and his ROM is amazing. The speed is insane and the battery life is better than CM7. The ROM isn't buggy by the way. it just doesn't work on the Bravo yet.. You should've read the post more before you trash talked
[Bravo Android Development] skeevydude:
I wasn't trying to trash talk him or the rom. I was asking you and my second sentence was based on the fact that 3.0 doesn't boot and the last time I checked the thread was at least a month and a half ago, so you got me there.:o

After those posts earlier, however, I did install (or try to anyways) 3.0. I did use 2.1 for about 4 hours and it was awesome until I tried usb tethering about 20 minutes ago.:( It didn't work from either the Moto Tether Tool or Settings Menu. Other than that it is a good rom and I wasn't ever trying to say otherwise.

Any ideas or things to try to fix tethering. This was a nice change from 7.:)
[Bravo Android Development] marquae11:
Sorry bro. I thought you were trash talking lol. But yes 2.1 is amazing. If we could make the camera work and usb tethering as well
[Bravo Android Development] walter79:
USB tethering should work with updated /system/etc/apn_config.xml

http://xdaforums.com/showpost.php?p=19213046&postcount=1248
[Bravo Android Development] skeevydude:
I tried that and it didn't work. I'll try to investigate it later tonight, have some work to go do. If it helps, I had the same problem with cm72 cherry picks & logcat had an error with libmotousb,
[Bravo Android Development] walter79:
check apn config. apn typ: default, dun, mms you need dun for tethering
[Bravo Android Development] skeevydude:
Thanks for the reply, but it didn't help. Apn was already correct. Pushed apn from cm7 I use normally and it didn't help either. After some catloging, I noticed permission errors for mediashare would appear after enabling tether. I froze it with TB, and only thing in log was accessing tether screen, no usbd mode switch or anything. I've never messed with android system permissions so I'm not sure where to go from here.

Since you mentioned resuming work on 3.0, would trying to get it to boot be more helpful to you?
[Bravo Android Development] walter79:
Trying to boot 3.0 should help. I think the problem is ramdisk (2nd-init folder) and the bravo froyo kernel. 3.0 needs a new ramdisk.
[Bravo Android Development] skeevydude:
Wow, quick reply. As for the tether error, it occurs with MotUsbService and UsbSettings not changing to mode 5. Figured the correct information may help someone who knows more. I get the same exact errors on some cm7 ports. I'm trying to find an overall fix for tethering as it's seems to be just a porting glitch since I don't see tethering issues on the Defy forums when I have them.

As for 3.0, I'll give it a good attempt and post back later this evening. Any way of pulling a logcat or similar during a bootloop?
[Bravo Android Development] marquae11:
Did you manage to get the camera working in 2.1?
[Bravo Android Development] walter79:
You can try Moto USB tethering apk.

http://android.podnova.com/software/598316.htm

or from market.
[Bravo Android Development] skeevydude:
No. I got bootloops when I replaced any camera lib/file, except for /system/etc/mot_ise_imager_cfg.bin. Have you tried this? It's supposed to work.

Also posted pikachu fix for ya in other thread. I wasn't on it long, but it seemed nice. Personally, I don't really care for the Miui interface, except settings menu, real nice and organized.

@Walter79, been looking over init scripts and comparing with cm7 and seeing slight symlink and mount variations among other little differences. Drag and drop from cm7 didn't work (didn't think it would either) so I'm gonna try and fix scripts line by line. Hopefully something good will come from this, and I'll learn a little more droid along the way.
[Bravo Android Development] walter79:
You can`t use init scripts from CM7. This scripts needs changes in framework too. Scipts works only with cm7.

I compared working bravo scripts with the 2.3.6 script. There are only a few changes in init.rc and initmapphone_umts.rc. Init and ueventd are different.
[Bravo Android Development] skeevydude:
I really didn't think they would, just a stupid shot in the dark.

After adding in some cm7 init binaries and *.rc changes, I'm able to get past 2nd-init and get the backlight buttons to flicker, but it hangs and won't load the boot animation, no bootloop whatsoever. At least it's not bootlooping at the motologo upon trying to execute 2nd-init.

Also, should I compare with working cm7 scripts, stock scripts, or some other.
[Bravo Android Development] skeevydude:
@Walter79 Here's the logcat from my latest boot attempt. Can't figure out what to do next. My errors now are panic_daemon, gki_pd_notifier, and SSM. I'm motologo bootlooping now, but etc/init.d scripts are working.

Offtopic, the Moto Tether Tool didn't work for me. Possibly because I use linux, never tested it with windows. Pdanet works when native tether doesn't, but requires me to reboot into windows.
[Bravo Android Development] walter79:
Maybe i found the problem. I added some mount point in /system/bootmenu/2nd-init/init.mapphone_umts.rc

attached new ramdisk. (2nd-init folder)

Can someone replace it in bravo patch and test if it works?

http://www.4shared.com/zip/tWiHLTYg/2nd-init.html

edit:

new patch for flash via cwm

http://www.4shared.com/zip/keF7yrPd/new-bravo-ms2ginger3-patch.html
[Bravo Android Development] skeevydude:
Trying now, I'll post back when I'm done.
[Bravo Android Development] skeevydude:
Didn't work. Crashes and bootloops at 2nd-init blue led, couldn't pull logcat.

Posting cwm zip with all the changes I've done so far. I put a ## commenting changes I did to make them easy to find, except for ueventd.rc, too many deletions to comment on.

Combined the two and didn't get anywhere either (provided all you did was add the 12 lines at the top).

And the kernel modules in the zip was something I did before going to bed, for no apparent reason other than I could...they really don't need to be there.
[Bravo Android Development] walter79:
Thanks for your work.

You zip can not work. Setting permissions is missing in update script.
[Bravo Android Development] skeevydude:
I hope it helped.

I'd add in permissions, but am unsure on the syntax. If you could provide a link or a simple description, I'd really appreciate it.
[Bravo Android Development] walter79:
Can someone test my MS2Ginger 4.0 beta 4 with new greenbread mod?

Rom can found in defy section.

greenbread mod: http://xdaforums.com/showthread.php?p=24770601

Install:

- wipe data and cache

- advance restore (system only)

- flash greenbreadmod zip (install via zip

Please report if it work or not.
[Bravo Android Development] josuearisty:
Hi walter, should I use the same greenbreadmod file?

Instead where should I find it?
[Bravo Android Development] walter79:
try the defy greenbread for 4.0.

http://xdaforums.com/showpost.php?p=24770601&postcount=3735
[Bravo Android Development] josuearisty:
Downloading it now!

I will let know later!
[Bravo Android Development] marquae11:
Well how'd it go?

sent from my Motorola Bravo
[Bravo Android Development] josuearisty:
I dont understand the question...

BTW I have to remove boot file from greenbread4.

Last time I tried I had to flash SBF FILE!

But I like MS2GINGER roms!

I it works now for me!
[Bravo Android Development] walter79:
4.0 works with greenbread and removed kernel from zip?
[Bravo Android Development] skeevydude:
@Josuearisty

I'd like to know as well. All Defy MIUI V4's boot up with similar issues to MS2Ginger 3.0+ and I'd like to test new Greenbread mod with MIUI 4v. Actually, any rom based on MOTO GB 2.3.6+ won't boot on the Bravo, so if it does boot MS2Ginger 4.0, that ramdisk needs to be looked at for using with other roms.

Also, I accidentally did a Google search with quarx2k (I forgot to add .ru to go to the website) and apparently the Moto Cliq 2 runs Quarx's Defy CM7 like we used to (with a few mods to fix the hardware keyboard). Just thought that was interesting and was worth mentioning.
[Bravo Android Development] walter79:
Can someone test this?

Download: http://www.mediafire.com/download.php?su5y4c21gyxp335

- restore MS2Ginger4.0 beta 4 nandroid (system only - use CWM >=5.0.3.1)

- flash new greenbreadmod http://xdaforums.com/showpost.php?p=25085903&postcount=3838

First boot need ~ 5min

Did it work?
[Bravo Android Development] skeevydude:
I'm downloading now.
[Bravo Android Development] skeevydude:
I have it completely booting up. No camere(expected), boot animation plays at 1fps, ui really laggy, no tethering, no button backlight.

I'm going to experiment with Bravo CM7 drivers to try and make it run smoother.

I used the 139-dfp-132.
[Bravo Android Development] walter79:
replace files from greenbread with bravo froyo file. if it works well we can do a different way to make camera working.

edit build.prop for button backlight. it is set to 10%
[Bravo Android Development] skeevydude:
Trying now. I had to restore cm7. Something I did caused it to stop booting up. I can tell you that /system/bin/mot_boot_mode needs to be replaced with the one from Quarx's Bravo CM7 20120410, probably usbd as well, I haven't been able to test that yet. mot_boot_mode was the first change I did and that made it boot, albeit very slowly. I only test roms on the primary nand and my phone is required for me to have internet, so if something goes wrong I have no internet to get help\new files\etc...I really need to instal an os on my laptop. Once I get new copies of the Greenbread mods (I forgot to make copies before I started editing them) I'll start round 2.
[Bravo Android Development] walter79:
Big thanks for help. try to replace /lib/hw/gralloc.omap3.so for better performance
[Bravo Android Development] skeevydude:
I'll try now. Using 453-DPP-14 boots as fast as CM7, but no bootanimation, no tethering, camera, or baseband. Camera and baseband were expected not to work.
[Bravo Android Development] walter79:
baseband: replace all file with bravo files /system/etc/motorola/bp_nvm_default
[Bravo Android Development] skeevydude:
Just haven't done baseband yet. I'm trying one thing at a time, one file at a time. Takes longer, but its easier to find fixes that way.

Now have camcorder. Camera takes picture, but won't open 470k so its getting data. Still need to edit build.prop for camera anyways.

gralloc.omap3.so helped a bit, then I realized I forgot to adjust oc settings this time. Now it runs smooth and good.

Still no tethering or bootanimation. I'll experiment with 134-dfp-139 in a while since bootanimation worked with it, even if it was 1fps.
[Bravo Android Development] walter79:
Bootanimation did not work on Defy with greenbreadmod for MS2Ginger 4.0. I don`t know why. There are no big difference in ramdisk. I use special one from defy 4.5.3-109-Dpp-11 kernel.
[Bravo Android Development] skeevydude:
For full working bootanimation, I had to add /lib/egl/libGLES_android.so from bravo cm7.

Still no photo or tethering. Photos so close its depressing. Camcorder fully working, no 720p, but we can't do anything outside of 4:3 aspect ratio.

Also, no adb remount while the system is running, only available from the bootloader. It kind of doesn't surprise me since the base rom is BL7, at least I think it is.

---------- Post added at 01:30 AM ---------- Previous post was at 01:09 AM ----------

I should have a zip up tomorrow. Its done, but its 1:30 am now so I'm going to bed. I'd like to actually test it first befote releasing.

@Walter, what app is supposed to be next to the app drawer on the launcher? It never appeared when I installed the launcher on cm7 either.
[Bravo Android Development] walter79:
Blur email. I removed it. There will be a update.zip for blurapps later.

Did you replaced /bin/battd ? Bravo has different battery.

I have i bravo bootanimation. "bravo" and not "defy" logo.
[Bravo Android Development] walter79:
MS2Ginger bootanimation for Bravo

thanks to spear1403

- rename attached file to bootanimation.zip

- copy file to /system/media/

- permission 644 (rw r r)
[Bravo Android Development] skeevydude:
Greenbread for Bravo

While still a wip, its ready for testing, feedback, and to help the cause.

There's still a tiny bit of lag, I believe its related to opengl libs. No photo camera yet, but the photos are being stored in proper size, just corrupted. Camcorder fully working. No data tethering. I'd make a nicely formatted post, but that's hard todo from the phone.

Remember to delete the bootloader and devtree from MS2Ginger, you get to flash an sbf if you don't.

Just flash the zip in recovery DIRECTLY after installing MS2Ginger.

Well, give me a minute. I can't upload with stock browser.

Delete the .docx extension. It was the only way to upload.
[Bravo Android Development] skeevydude:
Just a bump in the road.

I forgot to add that Greenbread TESTS 1-4 all work for the Bravo. Didn't try the others.
[Bravo Android Development] walter79:
Big thanks,

There is a small problem in build.prop

ro.media.panorama.defres=2592x1936

This setting is for 5 MP picture in panorama mode. Bravo supports only 3M.

Did you tried to 3MP in camera settings?
[Bravo Android Development] skeevydude:
Yes, photo sizes are around 450k, but corrupted data. I actually can't get any camera with my zip, files in the zip are the same ones I pushed yesterday. I can release my nandroid that works better than the zip if that would be better or easier.

I have to go work for the next 5-6 hours.
[Bravo Android Development] walter79:
I will check bravo froyo sbf. I think there is a different way to get camera working. (without camera wrapper)

build.prop original:

ro.media.camerapreview.reg=320x240

ro.media.camerapreview.wide=320x240

Can someone test attached files.

Bravo froyo camera files.
[Bravo Android Development] skeevydude:
The new bravo lib is styled like Defy lib. Using froyo files results in no boot
[Bravo Android Development] walter79:
Did you replaced mot_ise_imager_cfg.bin ?
[Bravo Android Development] mataflakitas:
work

full work......:confused:
[Bravo Android Development] skeevydude:
Yes, replaced that, and added libkobecamera.so.

I meant camera libs in last post.

Fully working except Picture Camera and data tethering. I'll upload my nandroid later. It works better than flashing the zip. I don't know why since I'm using the exact same files and permissions.
[Bravo Android Development] walter79:
Perfect, sent me a link for your nandroid and a working update.zip please.

I will upload it to MS2Ginger mirrors.
[Bravo Android Development] skeevydude:
I'm in the process of making an updated zip.

All camera calls are through libsoccamera.so. libkobecamera.so isn't required, only mot_ise_imager_cfg.bin. Still no picture, but video records at 640x480. WS 848x480 is blank video, sound only. Its acting like a hexedited libcamera.so from CM7 I made a while back.

I tried replacing soccamera with kobecamera and kobe froyo camera.so. No go.

Using froyo camera libs only won't boot.

I'm going to try hexediting libsoccamera and see what happens.

Logcat indicates libmotocamera.so crashes after recieving bad data from libsoccamera.so.

I'll upload a new, better zip in an hour or so. I want to mess with the camera for a bit longer, although I'd rather try fixing data tethering. I just don't like typing this much on a touch screen and its a mf to upload on any phone browser.

---------- Post added at 10:56 PM ---------- Previous post was at 10:13 PM ----------

New zip.

Known Bugs

*Accessing cpu/governor settings forces reboot

*settings/cm settings/interface crashes settings

*No Photo Camera

*No Data Tethering

Remove the .docx extension. Renaming to .docx and picking file with Quickoffice is the only way I can upload. Selecting .zip with stock file manager makes xda uploader think I'm uploading a folder.......

Just installed Maxthon Browser. Liking it so far. Its probably gonna end up replacing Dolphin HD.
[Bravo Android Development] walter79:
Tethering, use original apn-conf.xml. Patch for bravo replaced this file.
[Bravo Android Development] skeevydude:
Tried that with tethering with many Defy Ports. I edited the patch apn and added dun. ATT is same. Tethering problem is on ANY moto gb rom. What's weird is NOTHING happens in logcat when tethering is enabled, like I'm selecting a box that does nothing. Or ddms. The Bravo doesn't have tethering Stock, it was locked down by ATT.

I experimented with the camera a bit. What we need is a 3m soccamera driver, or a rewritten soccamera.so. That's something only Quarx or another programmer can do. The zte blade driver was suggested in another post so I'll try that later today.

Other than that, the only problems are the cpu governor menu causes forced reboot, so does any program that tries to change governor/access governor proc calls. Probably since there are 4 vsels and Bravo only supports 3. It may take replacing all oc/cpu files with Bravo CM7 versions.

And CM Interface menu crashes settings menu. Only fc.

Other than above, the rom runs great. I shouldn't have used the 3d fix, didn't fix anything and lost bootanimation. The blur app update works fine.
[Bravo Android Development] walter79:
Vsel 4 works only with > Android 2.3.3 kernel. Froyo kernel supports only 3 vsels. You can change the overclock.sh script. Bravo CM7 script works too.

CM interface is not finished yet. Some FC are normal.
[Bravo Android Development] skeevydude:
Yeah, I figured as much. I was going to get to that eventually, I've just been busy with the camera and tethering. Ondemand is good for testing anyways.

After looking at Settings.apk's smali from MS2 and CM7, the only difference I could tell was calls for Airplane Mode and EntitlementCheck. I tried rebuilding MS2's settings menu with the CM7 tether smail code, but the rom wouldn't recognize the apk, even after a data reset. It did compile, but had some missing translation errors.

I was watching the logcat from CM9 when I activated tethering and it makes the first call to MotUsbService, which I have no idea where that is, which then calls on UsbService and usbd to change to mode 17 and enable rndis_adb.

Still nothing new on the camera end.

UPDATE: Hexedited libsoccamera.so and removed the resolutions for 4 and 5 mp, still no picture but 3mp shows up 3x in a row, but that's better than the 5mp default and that not working at all. What sucks is it takes the picture, it just corrupts the data when writing it to the file. You can see that if you take a picture with lgcamera, it shows the picture on screen after taking the photo, it just doesn't save it correctly. I think it has something do do with autobanding and autoexposure since they're two of the many errors that show in logcat. I've already replaced all the jpeg libs, so they're not the problem.

I'm gonna go throw the frisbee with my dog now. I gotta give this a break for a while, maybe something'll come to me later.