[HOW TO] Flash FROYO properly with everything working

shamo42

Senior Member
Sep 12, 2009
219
58
0
Anyone can test it, so I don't know if it's my problem or a real bug of this image.

Thanks!
Works for me. Wifi connection is fast and stable.

I followed the guide, everything works well, except the camera. There's still the camera flash bug, works only for the first time. :(
Weird how different Defys suffer from different bugs. I've read somewhere that once you suffer from the flash bug, it's difficult to fix (even after flashing other ROMS).

Yes, I have the same problem! :S maybe we can fix it with the patch of other thread? :S Shamo, did you apply this patch? :S
I never had this problem and didn't flash any fixes. Hopefully the patch in the other thread will work. If yes, please let me know and I'll update the guide.

edit:
try this:
Higgsy said:
I have resolved the issue with the flash where it was out of sync and only flashed once and then you had to reboot before it would work again - by simply wiping data from the camera app via titanium back up - I now have a 100% working rom, sweet!"
 
Last edited:

Muznyu

Senior Member
May 15, 2010
160
24
0
Weird how different Defys suffer from different bugs. I've read somewhere that once you suffer from the flash bug, it's difficult to fix (even after flashing other ROMS).
Yep, it's weird, because I tried Higgsy's backup, tried both camera fixes, tried to wipe with Titanium Backup, spent a lot of time to find the solution, and nothing helped.
 

Pq2son2

Senior Member
Jan 9, 2010
50
4
0
Ey shamo42,

I try it, and works but just the first time!!! how I can debug this issue? :S can you guide me? :S maybe with more information we meet the correct answer about the cam problems.. :D

Pd. When I wipe the Camera Data and take other picture it use the flash light but the picture is full black! WTF XD hahahaha
 

ellendel

Senior Member
Dec 21, 2010
58
5
0
I have follow the guide and i can say all work perfect.
I had the flash issue with other roms of froyo, but with this method
it is solved, no bug till the moment, thanks for your work shamo42.
 

shamo42

Senior Member
Sep 12, 2009
219
58
0
Ey shamo42,

I try it, and works but just the first time!!! how I can debug this issue? :S can you guide me? :S maybe with more information we meet the correct answer about the cam problems.. :D

Pd. When I wipe the Camera Data and take other picture it use the flash light but the picture is full black! WTF XD hahahaha
I recommend to follow this thread:
http://forum.xda-developers.com/showthread.php?t=915078&page=8
These guys are working on a proper fix. I'll update this guide once there is one.

Currently the situation seems to be that once you've patched a previous "fix", wiping camera data or flashing another sbf doesn't help flash to work again.
I recommend not to flash the current "fixes".
 
  • Like
Reactions: ellendel

ellendel

Senior Member
Dec 21, 2010
58
5
0
I flashed both fixes trying to solve the issue with the flash,
didn't work and then came back to the 2.34 deblur rom till now.
That i flash the froyo again with this method and this time all work fine,
even the f** flash :D.
 

Jasper.tw

Member
Dec 9, 2010
41
0
0
Taichung
Black Notification Bar

Hi, shamo42,

Thanks you so much for your works.
I really like the black notification bar.
Here is a minor feedback: the time numbers are invisible(also black) on the bar.
Is it possible to have a fix on it?

Thanks.
 

Attachments

Muznyu

Senior Member
May 15, 2010
160
24
0
Yep, it's weird, because I tried Higgsy's backup, tried both camera fixes, tried to wipe with Titanium Backup, spent a lot of time to find the solution, and nothing helped.
Aaaand, I booted into normal recovery, wiped data and cache again, and now it seems to be working. The flash light looks weaker than on 2.34, but hey, finally it's OK. :) So my suggestion is to wipe data/cache in normal recovery after rooting and deodexing as well.

Edit: aaaand, it's gone after rebooting. :(
 

shamo42

Senior Member
Sep 12, 2009
219
58
0
Hi, shamo42,

Thanks you so much for your works.
I really like the black notification bar.
Here is a minor feedback: the time numbers are invisible(also black) on the bar.
Is it possible to have a fix on it?

Thanks.
Thanks.
If the numbers are black, "services.jar" wasn't copied successfully. If you have the services.jar from the attachment on the root of your sdcard, try this code:

Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/services.jar /system/framework/services.jar
reboot
You need to have everything deodexed for it to work (point 8)
 
  • Like
Reactions: Jasper.tw

Pq2son2

Senior Member
Jan 9, 2010
50
4
0
Hi, other time me XD

sorry but I try to apply what you "quoted" (wipe Camera Data) and doesn't work other time. xD

The people that flash light work, can you tell me with version you come from? 2.21? 2.3x? maybe this is the problem I come from 2.21..... I didn't upgrade at 2.3x

Thanks!
 

Jasper.tw

Member
Dec 9, 2010
41
0
0
Taichung
Thanks.
If the numbers are black, "services.jar" wasn't copied successfully. If you have the services.jar from the attachment on the root of your sdcard, try this code:

Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/services.jar /system/framework/services.jar
reboot
You need to have everything deodexed for it to work (point 8)
Although the adb command drives me crazy, it works PERFECT now!
Thank you sooo much.
 

shamo42

Senior Member
Sep 12, 2009
219
58
0
This is weird after hours working fine, the camera flash stop working.
From the other thread:
just to let everyone know that doing a data wipe using the stock (power button and volume down) recovery has fixed all my flash related problems.

this fixed my flash either not working or being very weak, this had been a problem ever since i used the flash fix in this thread. even going back to 2.51 and trying multiple restores never fixed it.
 

Pq2son2

Senior Member
Jan 9, 2010
50
4
0
From the other thread:
This doesn't work for me other time. :(

But! good news!! :D I found the problem (well after 15mins taken pictures, kill Camera Process and some reboots, I can say that the camera still works). But I don't belive that is a final Fix. :(

Now I explain what I did, after the failed attempt of fix with a Data/Cache Wipe, I started to read the "data" and "cache" directories, looking a bad permission or something wrong, and I found the Camera directory "/data/data/com.motorola.Camera/shared_prefs". Here we can find two files:
  • com.motorola.Camera_pref_loadsetting.xml --> Filters and other stuff of Photo/Video Recording.
  • com.motorola.Camera_preferences.xml ---> This file contains the last values set by the our loved Camera APP. :mad:

I just pulled the "com.motorola.Camera_preferences.xml", changing some values, and pushed other time overwriting the original preferences and finally killing the Camera App.

The next time that I restarted the Camera App I maked many pictures still now, and works really really well. I will happy until the other time the Camera fails. :p

Then you just must try this:
  1. Download the file, decompress and put into sdcard.
  2. Disable "USB Storage" by notification bar and open a shell with "adb shell".
  3. Remount System. "mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system"
  4. cp /sdcard/com.motorola.Camera_preferences.xml /data/data/com.motorola.Camera/shared_prefs/com.motorola.Camera_preferences.xml

And... tell me what happend with this try! :D maybe is a application bug? (sure) XD where is the Camera application of any 2.1 version? will it work at 2.2.1? :'(
 

Attachments

shamo42

Senior Member
Sep 12, 2009
219
58
0
I don't know of it helps, but these are the values of my com.motorola.Camera_preferences.xml. Cam and flash are working fine.

Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="tagsNum" value="0" />
<null name="currentIsoValue" />
<string name="sensorFocusModes">auto,macro,infinity,off</string>
<boolean name="isLocationOn" value="true" />
<int name="currentEffect" value="0" />
<string name="maxPanResolution">ThreeMP</string>
<string name="currentVideoResolution">VGA</string>
<string name="minPicResolution">OneMP</string>
<null name="sensorIsoValues" />
<string name="sensorExpValues">-3,-2.67,-2.33,-2,-1.67,-1.33,-1,-0.67,-0.33,0,0.33,0.67,1,1.33,1.67,2,2.33,2.67,3</string>
<string name="sensorFlashModes">[off, on, auto, torch]</string>
<string name="Exposure">0</string>
<int name="currentFlashVideo" value="0" />
<boolean name="currentFaceTracking" value="false" />
<string name="maxPicResolution">FiveMP</string>
<boolean name="isKeyWordTagsOn" value="false" />
<string name="sensorVidResolutions">640x480,352x288,320x240,176x144,</string>
<string name="Picture Resolution">FiveMP</string>
<string name="Video Resolution">VGA</string>
<int name="currentScene" value="0" />
<string name="currentReviewTime">2</string>
<string name="currentVissageShotResolution">OneMP</string>
<boolean name="isAutoShareOn" value="false" />
<boolean name="currentShutterToneState" value="true" />
<string name="Review Time">2</string>
<string name="currentExpValue">0</string>
<int name="currentFlash" value="2" />
<string name="currentSingleShotResolution">FiveMP</string>
<string name="currentPanShotResolution">ThreeMP</string>
<int name="currentEffectVideo" value="0" />
<int name="currentSceneVideo" value="0" />
</map>
 

Pq2son2

Senior Member
Jan 9, 2010
50
4
0
Your file is the original file that I modified.

I'm thinking that maybe, the Camera app has some bug like hardware sync. Anyone that doesn't work the flashled, can just kill Camera App and restart it? If this doesn't work, delete the preferences file and restart the Camera App.

Thank you!

Sent from my ME525 using XDA App
 

tensan

Senior Member
Dec 30, 2010
79
17
0
Burgos
At the end my flash works!

I only repeat all the process, and now it works. I don't do anything special, I was going to change the xml, but I didn't have it in my memory. I start the camera app in order to the app creates one, and at the first time don't work, but when I try again, it works, and have no error since then. I have no needed to change it. A little strange.

Thanks :D

I have been doing hard testing with the flash and at the end it continuous failing. I am bored. I will return to 2.21 and wait for something more stable.

Thanks for everything, I don't know why don't work with me.
 
Last edited: