[NEED DEV HELP] Fix camera from ported rom - Android Q&A, Help & Troubleshooting

Hi to all.
Let me tell you this is a great forum, with a lot of great work by developers to android.
So my problem is that i ported a ROM from a similar device, but only the camera
isn´t working. Ril, wireless, Bluetooth
is working.
Don´t know if it´s kernel or the rom itself... I have both Rom´s...
Can some Dev could take a look?
Thank´s...

replace these files from stock to port
system\lib\hw\camera.default.so
system/lib/ libcamdrv.so
system/lib/libcamalgo.so
system/lib/libcameracustom.so
system/lib/libdpframework.so
system\etc\permissions\android.hardware.camera.xml

Ahmed Alisha said:
replace these files from stock to port
system\lib\hw\camera.default.so
system/lib/ libcamdrv.so
system/lib/libcamalgo.so
system/lib/libcameracustom.so
system/lib/libdpframework.so
system\etc\permissions\android.hardware.camera.xml
Click to expand...
Click to collapse
Hi thank you for reply.
I already did that, still get the "can´t connect to camera" error...
The problem is camera icon is missing right on
the first boot, so maybe is something with kernel??

does it have camera apk?

Yes, it has
Camera.apk in System/app/Camera2

Fjss said:
Yes, it has
Camera.apk in System/app/Camera2
Click to expand...
Click to collapse
Which rom you are porting? and kernel or chipset?
try to change these also
system\lib\libcamera_client.so
system\lib\libcameracustom.so
system\lib\libcameraprofile.so
system\lib\libcameraservice.so

The Rom im porting is cm12.1 for Alcatel 7043 5.1.1 snapdragon 410 msm8916
my device is Vodafone smart prime 6, there is also a cm12.1 rom for this device but has many bugs and drain a lot of battery
that´s why i want to port this one is better from 7043y... Android 5.1.1

Help.....

pls some Dev with extra free time, that could take a look at both Rom´s...???
Thanks

Related

[Q] Miui - Wildfire S. Would like help please :)

Hey!
I downloaded the Miui unofficial rom for my Wildfire S ( Before that I had CM10)
I know that the camcorder didn't work on cm10 because the driver info wasn't released. On Miui it works, but when I tried to 'Tango' video call my partner, my video went like it did on cm10 (Just showed lines) I was wondering if anyone has a fix for this? or would anyone be able to fix it?
Also my voice recorder comes up with an error/force closed when ever I click the record button!?!
If all of the above is impossible, are there any other roms like CM or Miui that are good, available for the Wildfire S, and don't have these bugs..??
Any help would be appreciated! GREATLY
dannyboi132 said:
Also my voice recorder comes up with an error/force closed when ever I click the record button!?!
Click to expand...
Click to collapse
try to disassemble original framework.jar and miui framework.jar, and copy from base framework.jar/smali/android/media/MediaRecorder(all, that started MediaRecorder).smali to same folder in miui's framework.jar

Help with CM7 ROM PORT

Hello, I have cm7 running on my Samsung Dart. I ported this CM7 Rom from the Samsung Galaxy Mini:
http://forum.xda-developers.com/showthread.php?t=1712654
It booted and got to the setup screen. The problem is that there are black lines in the screen and everything is cut up. I've been pressing things and everything is responding, I just ca't see it. What did I do wrong and how can I fix it? Do I need to change the filenames in system>lib>hw to match the galaxy mini's?
I used this to Port it
http://forum.xda-developers.com/showthread.php?t=2276871
eugeneeaster18 said:
Hello, I have cm7 running on my Samsung Dart. I ported this CM7 Rom from the Samsung Galaxy Mini:
http://forum.xda-developers.com/showthread.php?t=1712654
It booted and got to the setup screen. The problem is that there are black lines in the screen and everything is cut up. I've been pressing things and everything is responding, I just ca't see it. What did I do wrong and how can I fix it? Do I need to change the filenames in system>lib>hw to match the galaxy mini's?
I used this to Port it
http://forum.xda-developers.com/showthread.php?t=2276871
Click to expand...
Click to collapse
I would recommend replacing the system/lib folder in the Samsung Galaxy Mini port ROM with the system/lib folder of your Samsung Dart base ROM this way your ROM should have the proper graphic libraries and other libraries that should fix your graphic issues. I would also recommend taking a look at this guide that manually explains how to port ROM's.
shimp208 said:
I would recommend replacing the system/lib folder in the Samsung Galaxy Mini port ROM with the system/lib folder of your Samsung Dart base ROM this way your ROM should have the proper graphic libraries and other libraries that should fix your graphic issues. I would also recommend taking a look at this guide that manually explains how to port ROM's.
Click to expand...
Click to collapse
Tried this but same results, please what else can I do? Another question , have you had sucess with this guide? Thanks .
eugeneeaster18 said:
Tried this but same results, please what else can I do? Another question , have you had sucess with this guide? Thanks .
Click to expand...
Click to collapse
Even though the guide mentions it for HTC devices it's still work a shot trying this fix for graphic glitches that the guide mentions:
Decompile framework.jar
Change these files with your base
smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer
Personally I have had success with the guide following the exact steps in the guide I was able to port a ROM or two. Your other option would be to try and build for your device from source.

[REQUEST] MIUI 8 Mirror for Nubia Z7 Max

Hey guys. Could anyone please create a mirror or something for MIUI 8? There IS a version for Nubia N7X available, but the owner uploaded the ROM at Baidu Pan, which download link is terrifying.
Cheers
vaporwavie said:
Hey guys. Could anyone please create a mirror or something for MIUI 8? There IS a version for Nubia N7X available, but the owner uploaded the ROM at Baidu Pan, which download link is terrifying.
Cheers
Click to expand...
Click to collapse
Hi there
I have managed to download this rom -MIUI 8, 7.1.6 beta.
It is global and seems to be running quite okay. If you are interested I could probably upload it somewhere
Guffeogco said:
Hi there
I have managed to download this rom -MIUI 8, 7.1.6 beta.
It is global and seems to be running quite okay. If you are interested I could probably upload it somewhere
Click to expand...
Click to collapse
I'm interested too.
MIUI 8 for ZTE Z7 Max
Here is the MIUI 8 rom, v. 7.1.6 (Android 6)
copy to secure browser mega.nz/#F!cw9DDQYD!nUUhbF-tvOCU4pWzPCZs2Q
I wasn't allowed putting direct link, so you will have to copy to your browser.
I have only mangede to download from baidu. Have fun.
Rom has bugs, sudden restarts, full of chinease bloatware , looks nice but needs fix. I was surprised it worked on ZTE Z7Max. Please fix restarts, remove bloatware and please change that chinease keyboard to Gboard or stock AOSP. Thanks
Optimus1982 said:
Rom has bugs, sudden restarts, full of chinease bloatware , looks nice but needs fix. I was surprised it worked on ZTE Z7Max. Please fix restarts, remove bloatware and please change that chinease keyboard to Gboard or stock AOSP. Thanks
Click to expand...
Click to collapse
Yes, it has some bugs, and I presenced some restarts. The chinese bloatware thing can be easily fixed by removing those apps using "System App Remover". It works
About the keyboard: You can download Gboard normally, you know
MIUI 8 ZTE Z7Max
vaporwavie said:
Yes, it has some bugs, and I presenced some restarts. The chinese bloatware thing can be easily fixed by removing those apps using "System App Remover". It works
About the keyboard: You can download Gboard normally, you know
Click to expand...
Click to collapse
there is no problem about Keyboard, but restarts are really annoying. it would be really nice if somebody with skills could fix these problems and upload this ROM here on XDA or to NEEDROM. Thanks anyway :good:
Update: I created a post on needrom so everyone can easely access it. Thanks @Guffeogco for the mirror. I did one as well, so we can get at least a sub mirror
Also, huge kudos to Yayanan for porting an almost stable MIUI for us.
Link: https://www.needrom.com/download/miui-8-14/

Google Camera

Hey everyone,
Did someone managed to install Google Camera on Umi Z, 7.1.1 ? I tried many times, but craches everytime..
Interesting dies not show in play store so maybe its not compatible .. Seems most others are so lots if choice is standard app is not for you.
plytraid said:
Hey everyone,
Did someone managed to install Google Camera on Umi Z, 7.1.1 ? I tried many times, but craches everytime..
Click to expand...
Click to collapse
you can test this two camera apk , htc and lenovo , work fine
https://www.androidfilehost.com/?fid=673368273298961488 htc
https://www.androidfilehost.com/?fid=889764386195905998 lenovo
Thank you, but I am looking for the Google Camera because it has special features like a "bokeh" effect with one Camera only...
Moreover, I managed to get it under Umi Z with 6.0 ROM, flashing a Zip file with TWRP; but I didn't find anything like this for 7.1.1 ROM... That's what I would love to find

XA ultra F3211 custom rom

Hi guys, I've found a custom rom that seems to work for our XA ultra. I'm using an other phones rom as base.
I don't want to steal someone elses credits and/or work.
I haven't spoken with the author and I'm not aware of all the rules. I fell of the motorcycle when a dog tried to attack me so my hands(palms) are wounded. Feel free to help me on this journey. Finally no more sickening bloated sony rom.
Kernel used: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725
System image ROM: AOSP? 7.0 Need to contact author first.
Bugs:
- Battery shows as 1%
- No sound from speaker, MIC works
- Settings System app crashes when opening about phone
- Camera with weird blueish greenish hue/tint
- Share image upload doesn't show file browser
What's working:
- Touchscreen
- Keyboard
- WIFI
- Camera front and rear
- Auto rotate
- SD card
- Vibrations
Pictures:
https://imgur.com/a/vM58t
Contacted author of rom through the pm system
Tahsin88 said:
Pictures:
https://imgur.com/a/vM58t
Contacted author of rom through the pm system
Click to expand...
Click to collapse
Thank you for pictures, you know if the rom have sources?
rrvuhpg said:
Thank you for pictures, you know if the rom have sources?
Click to expand...
Click to collapse
No clue I contacted the author of the rom if it is okay to link his rom in this thread, will ask him if he replies. Not sure if it is an aosp or 7.0 modified to look like one.
I'm just happy we found a non sony rom to work as expected with our phone with minor issues. I did not port the rom just flashed system.img and it seemed to work. No major crashes overheating or anything like that. I know we can replace some files like camera libs so charger to get stuff working properly and maybe fix the settings crash when trying to open about phone with logcat? I know most fixes are listed in porting guide topics so hopefully it will be a piece of cake.
I prefer slim roms over any sony roms. TBH i debloated stock 6.0 rom but the phone was overheating and minor issues so I tried some other roms, i removed the backplate of my phone so I can test and remove thr battery cable to quickly reboot when it's stuck or looping. I have no problem with it since my screen broke I also took twrp backups incase it's needed. The sony threads are just too empty
rrvuhpg said:
Thank you for pictures, you know if the rom have sources?
Click to expand...
Click to collapse
Oh crap I just noticed you provided the kernel I used :good: :highfive:
now the forum is little fired up
I'm excited about the rom im sure devs will hep to make it live working
Finally we have something. I'm still waiting for Android 8 sources to be released
Tahsin88 said:
Hi guys, I've found a custom rom that seems to work for our XA ultra. I'm using an other phones rom as base.
I don't want to steal someone elses credits and/or work.
I haven't spoken with the author and I'm not aware of all the rules. I fell of the motorcycle when a dog tried to attack me so my hands(palms) are wounded. Feel free to help me on this journey. Finally no more sickening bloated sony rom.
Kernel used: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725
System image ROM: AOSP? 7.0 Need to contact author first.
Bugs:
- Battery shows as 1%
- No sound from speaker, MIC works
- Settings System app crashes when opening about phone
- Camera with weird blueish greenish hue/tint
- Share image upload doesn't show file browser
What's working:
- Touchscreen
- Keyboard
- WIFI
- Camera front and rear
- Auto rotate
- SD card
- Vibrations
Click to expand...
Click to collapse
Send me the link please?
rrvuhpg said:
Thank you for pictures, you know if the rom have sources?
Click to expand...
Click to collapse
Author is not responding found some related source code that will most likely work for our device aswell!
Forwarded it to user rrvuhpg, lets cross our fingers and hope for the best!!!!
Any more news on this?
appleknight said:
Any more news on this?
Click to expand...
Click to collapse
As said by @Tahsin88 he have forwarded sources code links to me, very big thanks to him :good:. Until now I worked with Elephone P9000 sources code as base and it was good on Marshmallow but for Nougat it uses a lot of files from MM and it's not good. New sources are even better to build Nougat based roms, I have to port them to XA and start building. It will takes some time but it's on the good way
rrvuhpg said:
As said by @Tahsin88 he have forwarded sources code links to me, very big thanks to him :good:. Until now I worked with Elephone P9000 sources code as base and it was good on Marshmallow but for Nougat it uses a lot of files from MM and it's not good. New sources are even better to build Nougat based roms, I have to port them to XA and start building. It will takes some time but it's on the good way
Click to expand...
Click to collapse
What about dt2w? Any progress?
And please don't forget XA Ultra, the bigger one
BlueTR said:
What about dt2w? Any progress?
And please don't forget XA Ultra, the bigger one
Click to expand...
Click to collapse
I worked on dt2w P9000 is not good because needed files are already compiled, I need original .c and .h but they are already compiled in .o so it's like some already chewed food and I can't port the patch from it. I tried with an other patch but it doesn't work because some kernel definitions are different in the code and I'm not good enough to correct this. I think that if I can find the same thing in a 3.18 kernel it will works.
Good news for you, all this work and rom building are made on a F3211 device Now I have this one and a F3112 (XA), I work on it because the XA Ultra community thanked me more than the XA community for my work on Nougat so for me it's normal to work on XAU first and later on XA
rrvuhpg said:
I worked on dt2w P9000 is not good because needed files are already compiled, I need original .c and .h but they are already compiled in .o so it's like some already chewed food and I can't port the patch from it. I tried with an other patch but it doesn't work because some kernel definitions are different in the code and I'm not good enough to correct this. I think that if I can find the same thing in a 3.18 kernel it will works.
Good news for you, all this work and rom building are made on a F3211 device Now I have this one and a F3112 (XA), I work on it because the XA Ultra community thanked me more than the XA community for my work on Nougat so for me it's normal to work on XAU first and later on XA
Click to expand...
Click to collapse
So, I guess it will be harder to succeed. Anyway it's not the end of the world, we may not have dt2w but we will have a working custom rom which is better
Tahsin88 said:
Hi guys, I've found a custom rom that seems to work for our XA ultra. I'm using an other phones rom as base.
I don't want to steal someone elses credits and/or work.
I haven't spoken with the author and I'm not aware of all the rules. I fell of the motorcycle when a dog tried to attack me so my hands(palms) are wounded. Feel free to help me on this journey. Finally no more sickening bloated sony rom.
Kernel used: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725
System image ROM: AOSP? 7.0 Need to contact author first.
Bugs:
- Battery shows as 1%
- No sound from speaker, MIC works
- Settings System app crashes when opening about phone
- Camera with weird blueish greenish hue/tint
- Share image upload doesn't show file browser
What's working:
- Touchscreen
- Keyboard
- WIFI
- Camera front and rear
- Auto rotate
- SD card
- Vibrations
Click to expand...
Click to collapse
Can u ported miui9 for xa ultra
Status update? Need for testing?
following
Tahsin88 said:
Hi guys, I've found a custom rom that seems to work for our XA ultra. I'm using an other phones rom as base.
I don't want to steal someone elses credits and/or work.
I haven't spoken with the author and I'm not aware of all the rules. I fell of the motorcycle when a dog tried to attack me so my hands(palms) are wounded. Feel free to help me on this journey. Finally no more sickening bloated sony rom.
Kernel used: https://forum.xda-developers.com/xa-ultra/development/f32xx-stock-kernel-built-sources-t3639725
System image ROM: AOSP? 7.0 Need to contact author first.
Bugs:
- Battery shows as 1%
- No sound from speaker, MIC works
- Settings System app crashes when opening about phone
- Camera with weird blueish greenish hue/tint
- Share image upload doesn't show file browser
What's working:
- Touchscreen
- Keyboard
- WIFI
- Camera front and rear
- Auto rotate
- SD card
- Vibrations
Click to expand...
Click to collapse
Could I possibly get the link for this? I will start developing on it.
I feel like this has died?
I hope not so

Categories

Resources