Port 23 toogles Wanam/lidroid for N7105 - DMF2

zamcum

Senior Member
Oct 22, 2008
265
449
0
Hello

I'm doing some mods to DMF2 Odexed rom in this thread:
http://forum.xda-developers.com/showthread.php?t=2384963

I'm trying to make the port the mod 23 toogles of Wanam / lidroid.

is almost finished but I have a fc in System UI when i use toogle "flashlight"

This is the Catlog this error:
Code:
07-30 19:31:20.020 E/AndroidRuntime(27597): java.lang.RuntimeException: Fail to connect to camera service
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.native_setup(Native Method)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.<init>(Camera.java:353)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.open(Camera.java:330)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.util.LedController.openCamera(LedController.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.util.LedController.isFlashSupported(LedController.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.systemui.quickpanel.FlashlightButton.toggleState(FlashlightButton.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.systemui.quickpanel.PowerButton$2.onClick(PowerButton.java:181)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.view.View.performClick(View.java:4223)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.view.View$PerformClick.run(View.java:17275)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Handler.handleCallback(Handler.java:615)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Handler.dispatchMessage(Handler.java:92)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Looper.loop(Looper.java:137)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.app.ActivityThread.main(ActivityThread.java:4898)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at dalvik.system.NativeStart.main(Native Method)
07-30 19:31:20.025 E/android.os.Debug(3694): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error


Thanks in advance for any help


these are the files used in the merge of classes.dex:
 
Last edited:
  • Like
Reactions: Davidson3680

wanam

Recognized Contributor / Developer
Jan 26, 2011
6,193
29,973
263
Toulouse
wanam.net
Hello

I'm doing some mods to DMF2 Odexed rom in this thread:
http://forum.xda-developers.com/showthread.php?t=2384963

I'm trying to make the port the mod 23 toogles of Wanam / lidroid.

is almost finished but I have a fc in System UI when i use toogle "flashlight"

This is the Catlog this error:
Code:
07-30 19:31:20.020 E/AndroidRuntime(27597): java.lang.RuntimeException: Fail to connect to camera service
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.native_setup(Native Method)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.<init>(Camera.java:353)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.hardware.Camera.open(Camera.java:330)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.util.LedController.openCamera(LedController.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.util.LedController.isFlashSupported(LedController.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.systemui.quickpanel.FlashlightButton.toggleState(FlashlightButton.java)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.wanam.systemui.quickpanel.PowerButton$2.onClick(PowerButton.java:181)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.view.View.performClick(View.java:4223)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.view.View$PerformClick.run(View.java:17275)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Handler.handleCallback(Handler.java:615)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Handler.dispatchMessage(Handler.java:92)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.os.Looper.loop(Looper.java:137)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at android.app.ActivityThread.main(ActivityThread.java:4898)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at java.lang.reflect.Method.invokeNative(Native Method)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at java.lang.reflect.Method.invoke(Method.java:511)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
07-30 19:31:20.020 E/AndroidRuntime(27597): 	at dalvik.system.NativeStart.main(Native Method)
07-30 19:31:20.025 E/android.os.Debug(3694): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error


Thanks in advance for any help


these are the files used in the merge of classes.dex:
You need to edit AndroidManifest.xml and add the required Camera permission, recompile and resign the file and disable signature check on service.jar.
 
  • Like
Reactions: zamcum

zamcum

Senior Member
Oct 22, 2008
265
449
0
You need to edit AndroidManifest.xml and add the required Camera permission, recompile and resign the file and disable signature check on service.jar.

Problem solved ...and mod in the thread

A big thanks for your quick and huge help




regards

Zamcum
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone