[Q] Question: Port driver from one rom to another? - Android Software/Hacking General [Developers Only]

Hello guys, so I have a chinese MTK6577 phone that isn't very known and I bricked it but I don't have the firmware for. I managed to find two firmwares for similar phones, and the first one has everything working except the WIFI/Bluetooth/FM/GPS chip (MT6620) and the second has everything working except the camera.
What I want to do is basically make the camera work on the second rom by porting the driver from the first one to the second. On the first time, when I enter the camera app, it says "Could not connect to camera" so, I took 4 files from the first rom and put them on the second one, the files are:
/system/lib/libcamera_client.so
/system/lib/libcameracustom.so
/system/lib/libcameraprofile.so
/system/lib/libcameraservice.so
Now, the front camera is working well but I don't see the swich button to test the back camera (android doesn't seem to detect it). So do you guys know what other files should I copy? Thanks.

Related

STAR N9770 DUAL CORE MT6577/ulefone N9770.

This is a new thread for the star n9770 mt6577 Dual core.
ROOT
I have just used this method to safely root my star n9770 and worked perfect,it just wipes your time and date after root so just reset them and that's it.
you must follow instructions....
http://colonelzap.blogspot.co.uk/search?q=n9770
Thank you Rumpelstilzchen for that!
(does not seem to work with new 13/07 firmware but fine with earlier)do not try on devices running firmware later than 13/07/12 it will naff them
FIRMWARE STAR N9770 DUAL CORE MT6577/ulefone N9770.
STAR N9770 DUAL CORE MT6577/ulefone N9770.
CUSTOM RECOVERY
https://rapidshare.com/files/4163487113/STAR-N9770_Custom_Recovery.zip
CWM
https://rapidshare.com/files/3326837023/CWM-SuperSU-v0.93_tirannozaurus.zip
FLASHTOOLS AND DRIVERS
https://rapidshare.com/files/3354053184/FlashTools_driver.rar
FIRMWARE 13/07/2012 Thanks kylie 1965
https://rapidshare.com/files/2757089569/20120713_e1809c_v77_gq1008_9p017.N9770.zip
STOCK FIRMWARE 4.0.9
I have received this today from my supplier of device n9770 dual core
https://rapidshare.com/files/2825524946/欧乐风N9770-2012-0712.zip
http://www.mediafire.com/?eyci9chr527chu9 10/08/2012 latest for devices running 5647 firmware only
latest firmware N9770-20120725_e1809 c_v77_gq1008_5647.zip 25/07/2012
Will fix back camera issues due to additional sensors in device.
http://www.mediafire.com/?2fcalamvy7hvlyo
HOPE THESE HELP.
THIS IS ORIGINAL FIRMWARE FROM FIRST ISSUE AND IS OLD AS ARE THE ROOT EXPLOIT AS WAS FOR FIRST N9770 MADE.
NOW THERE ARE MANY MODELS CALLED N9770 SO PLEASE READ THREAD FOR MORE UPDATED FIRMWARE AND EXPLOITS ROOT ETC. ENSURE YOU MAKE A NOTE OF YOUR DEVICE FIRMWARE IN SETTING /ABOUT PHONE AND WRITE IT DOWN BEFORE YOU START FLASHING THE FIRST FIRMWARE YOU FIND.
ALWAYS BACKUP DEVICE
Thank you !
Do you know whats the differences between the both firmwares in your post are ?
My N9770 will not fall into Deep Sleep. It just clock the CPU down to 250mhz, but its still on and drains the battery within 12 hours.
I tried several ROMs i've found but all the same. Maybe your stock firmware solves the problem.
hardi75 said:
Thank you !
Do you know whats the differences between the both firmwares in your post are ?
My N9770 will not fall into Deep Sleep. It just clock the CPU down to 250mhz, but its still on and drains the battery within 12 hours.
I tried several ROMs i've found but all the same. Maybe your stock firmware solves the problem.
Click to expand...
Click to collapse
i have no idea but i have tried to install the stock firmware i got today but it wont happen,and flashed with the other firmware i got from kylie and its not good.
if you have any working roms i would seriously appreciate a link to some roms as my colours are washed out with the kylie firmware and stock need to be done in recovery but can not do it as wont have saying not signed?so i need a little help
ref battery you need to root and then set cpu to ondemand i use no frills cpu from play to do this
managed to sort out colour issue flashed with mdt and changed the grapics driver so the colour is good now but i have the problem that i started with which created all this hassle and that is the cameras...How do i swap from the front to back camera???
i dont have the little icon to change cameras.
sas007 said:
i have no idea but i have tried to install the stock firmware i got today but it wont happen,and flashed with the other firmware i got from kylie and its not good.
if you have any working roms i would seriously appreciate a link to some roms as my colours are washed out with the kylie firmware and stock need to be done in recovery but can not do it as wont have saying not signed?so i need a little help
ref battery you need to root and then set cpu to ondemand i use no frills cpu from play to do this
Click to expand...
Click to collapse
I tried out this Taiwan101 ROM, this one from a russian forum (25/07?) and this one from a chinese forum (newer Taiwan?).
I also had the issue with these strange colors, its the wrong display driver. I fixed it with SP_MDT by selecting RX_50NT_401B as display driver. It seems that these ROMs had all RX_50NT_365A as default which end up in wrong colors.
With the 25/07 Firmware i also killed my cameras, should also be fixable with the correct drivers.
This 'not signed' error appears also with custom recovery ?
yep i can not get the back camera to work/switch, going to try your later rom is it rooted?
How do i install these roms?the later newer Taiwan as i am not used to dual core,do you copy zip to sd card (internal) and go to recovery and update via sd card?
and how would you change the display driver if not flashing via tools
Did you ever have the cameras working as they should?
100 questions.......
hope we can get there in the end
sas007 said:
How do i install these roms?the later newer Taiwan as i am not used to dual core,do you copy zip to sd card (internal) and go to recovery and update via sd card?
Click to expand...
Click to collapse
Yes exactly, you had to copy the file to the sd card and flash it via recovery. But you had to install a custom recovery first (i flashed only the recovery. Flashing also the boot.img and the preloader out of this zip ended with a not booting phone.
sas007 said:
and how would you change the display driver if not flashing via tools
Click to expand...
Click to collapse
I flashed the driver with tools. Not the hole ROM, just the uboot.bin. It seems that sp_mdt saves the driver in uboot when you close the programm. I did so and flashed the uboot with the 'normal' flashtool.
sas007 said:
Did you ever have the cameras working as they should?
Click to expand...
Click to collapse
Both cameras survived every change of firmware until i flashed the 25/7 ROM.
It seems that there are several hardware version. With the Taiwan101 firmwares the external sd card will not be recognized. I flashed the boot.img from the 13/07 firmware and the sd card came back. SD card is also out of function with your stock rom.
I still had the problem with phone not going into deep sleep. Also NoFrills couldn't change that. Maybe i've not found the right ROM for my hardware yet. I got it from CECT.
Hi i have flashed with the firmware from kylie and changed the display driver whilst flashing with mdt..display is good
I do not have back camera i see no way to switch to back but the front works fine and i have no idea as when i flashed with default driver it was the same no back camera
I do have external SD no problem with 32gb
I had no problems with imei
i need a recovery to flash
found these
http://translate.google.com/transla...um.china-iphone.ru/viewtopic.php?f=70&t=21147
http://translate.google.com/transla...um.china-iphone.ru/viewtopic.php?f=70&t=21147
but no help to me
The root tutorial posted here does not work with new firmware,so i copied recovery image from custom recovery (brunos)and replaced recovery in new firmware and flashed using mdt with the driver change for graphics..it worked and installed custom recovery and i then proceeded to root with the cwm-su zip in recovery and it worked.
but still no back camera
Cameras and display are working now with these drivers selected in sp_mdt :
mt9p017_raw hi704_yuv RX_50NT_401B
Which display driver have you choosen ? The same ?
hardi75 said:
Cameras and display are working now with these drivers selected in sp_mdt :
mt9p017_raw hi704_yuv RX_50NT_401B
Which display driver have you choosen ? The same ?
Click to expand...
Click to collapse
yes i used the same settings but still no back camera and other non stock camera apps will not work
i am uploading the modified firmware with these settings in the uboot and with the custom recovery in so can be straight flashed in one go.
sas007 said:
yes i used the same settings but still no back camera and other non stock camera apps will not work
i am uploading the modified firmware with these settings in the uboot and with the custom recovery in so can be straight flashed in one go.
Click to expand...
Click to collapse
You have tested all possible drivers ? Did the second camera work befor flashing ?
I changed the driver and bootet into system test (power+vol. down) to see if the cams are back or not. Its a bit faster than waiting for android to boot completely.
hardi75 said:
you have tested all possible drivers ? Did the second camera work befor flashing ?
I changed the driver and bootet into system test (power+vol. Down) to see if the cams are back or not. Its a bit faster than waiting for android to boot completely.
Click to expand...
Click to collapse
hi ran the test and main camera is fail...great back it goes
sas007 said:
hi ran the test and main camera is fail...great back it goes
Click to expand...
Click to collapse
Maybe I could try note firmware. I have used same settings for drivers with the same firmware as you but the main camera still dead. Strange.
how do you get the stock firmware signed,i wish i could use it as may hold the key
Sent from my ONDA MID using xda premium
N9770 topic
sas007 said:
I have used same settings for drivers with the same firmware as you but the main camera still dead. Strange.
how do you get the stock firmware signed,i wish i could use it as may hold the key
Click to expand...
Click to collapse
I've not used the 13/07 version u posted, i got it from this link. Should be se same but who knows. Maybe released
You have flashed the custom recovery which you have posted on the first page ? I got these not signed errors only with stock recovery.
hardi75 said:
I've not used the 13/07 version u posted, i got it from this link. Should be se same but who knows. Maybe released
You have flashed the custom recovery which you have posted on the first page ? I got these not signed errors only with stock recovery.
Click to expand...
Click to collapse
Hi used your firmware link outcome the same no camera so i flashed taiwans rom still no back camera,used uboot from n8000 has the correct drivers for cameras but not display...uboot from i9220 has wrong drivers as has the uboot from note.
used the firmware sent to me by supplier renamed it update zip and installed over taiwans rom and still no back camera.
was getting error "can not connect to camera" several times through out the process,have called it a day and am returning device..
Repartition N9770
Has anyone come out with the 2.5g repartition yet??
Try clearing your cache and removing your battery. Then, install any free basic new Jellybean cam app from the market. See if that re-installs your camera.
sas007 said:
Hi used your firmware link outcome the same no camera so i flashed taiwans rom still no back camera,used uboot from n8000 has the correct drivers for cameras but not display...uboot from i9220 has wrong drivers as has the uboot from note.
used the firmware sent to me by supplier renamed it update zip and installed over taiwans rom and still no back camera.
was getting error "can not connect to camera" several times through out the process,have called it a day and am returning device..
Click to expand...
Click to collapse
ronbo76 said:
Try clearing your cache and removing your battery. Then, install any free basic new Jellybean cam app from the market. See if that re-installs your camera.
Click to expand...
Click to collapse
Hi and thanks for your suggestion i had already tried that with 3-4 different apps,all stated they could not connect to camera,for me it is a hardware fault as i have done everything humanly possible to resolve.i have now returned device and await a new one.
having talked with china supplier the n9770 has a lot of problems and was released to market to early..most of the models sent out have been recalled due to major faults and they said it wont be until middle of September before the chipset mt6577 is back,whether there is any truth in that i do not know..but they had no replacement for me and have already issued a full refund and postage costs on emailing proof of postage so they seem honest....ummm
Cheers

Help me Rom nyx fly mini! gallery application has stopped

Hello friends, I have a question.
attempt to unlock the "nyx fly mini " the problem is that there is a version of this phone that you can not enable bands.
So what I did was try several rom and finally install the rom achieve another cell and it worked perfect everything except the camera, every time I try to use the camera get a message that says the gallery application has stopped.
maybe someone can help me to know how I can do to work the camera with this rom.

Chinese A23 Q8H wifi not working camera distorted.

Hi everyone,
Apologies in advance if I have posted this in the wrong place since I could not find anywhere else to put this.
My wife has a chinese tablet which started having issues with the rear camera showing everything as distorted opened it up cleaned the inside etc same issues so I tried clearing every cache under the sun aswell as trying to do a straight out wipe of the tablet which made no difference odd thing is the front camera was working fine. So I thought perhaps there is something wrong with the firmware on it so I went out on the internet to download another rom (bad idea). Now the closest working rom I have on this tablet still has the same camera issues as above (the both just show black screens when I flick between the two and now the wifi doesn't work.
Can someone please so kindly help me so I can get my wifes tablet back into working order.
Below is a screenie of what was on it before messing around with it.
I also remember when doing the wipes on the system exdroid v2 20140225 tried to search for the firmware with the above information and information provided in the screenie however I keep coming across roms that have other issues one had touch screen not working, others would not acknowledge the fact the tablet has two cameras and would only verify one as being there(still didn't work)
Before changing anything on tablet (rear camera was not working at this point front was working)
CPU Dualcore A23
Model Q8H
Droid version 4.2.2
Firmware version v2.0.9 firmware
Kernel version 3.4.39
Build number polaris eng 4.2.2 8089 20140225 test-keys
Please dear Android Gods help me!!!!
:crying::crying::crying:
UPDATE
Now have a working system with WIFI only issue now is trying to resolve the camera and actually get it working.
Camera prior to all this was just distorted before and after taking pics and only the front cam was working fine currently neither are working at all.
Have tried various fixes on other posts on this forum however nothing is working now sure what to do now.
Now running;
CPU A23
Model Q8H
Android Version 4.2.2
Firmware Version v2.0.9
Kernel Version 3.4.39
Build polaris-eng 4.2.2 8089 20140317 test keys

HELP!!!! my buttons won't work after porting ROM (CYANOGENMOD 13)

I recently ported a cm rom marshmallow 6.0.1 based rom for my mt6572 device, it was a successful process , i'm still shocked, after 2 years of porting roms to this miserable device and huge amount of failure it finally worked, :victory: CM is the only rom i was hoping to get my hands on, and now i finally did it :laugh: i have issues with this rom like camera crash+ bluetooth doesn't work+ no sim work(invalid imei) 2 sd cards showing up but only one work (the other one needs format, after format still doesn't work but phone storage is working) and the button are my major issue with this rom:crying:, (back+home+menu+power+volume ) all of them doesn't work. i need only to make the buttons work, the rest of the issue i might be able to fix them
HELP!!!
anyone? please help:crying:

OnePlus 7 Pro Bricked After I Tried to Install the OxygenOS Cam on my Custom ROM

My attempt to install the OOS Cam bricked my phone.... so my question is Why did my phone got bricked exactly? I want to know what I did wrong since I really want to use the OOS Camera.​So I was trying to get the original stock camera app to work on my device because the other ones looks horrible. I mean I have a kind of flagship device and the photo quality looks like my old cheap Huawei phone.
First I tried with an 3.x.x version of the app installed as an normal application. It works but the quality is still bad.
This is where I got that apk: https://forum.xda-developers.com/t/apk-oneplus-camera-for-any-a11-custom-rom.4350205/
On Reddit there is a post that said if you replace the Camera.apk on /system/app/Camera with the OnePlus Camera it should work.
The result? It worked and the quality seems better!....but some functions of the app like video or changing the size of the picture crash the app. Now the phone got really hot for some reason. No idea why but anyways I decided to go "creative" and I analyzed the official OxygenOS Rom(This is where I got the OOS Camera apk) to see what files where related to the OnePlus Camera app and then I pushed it through ADB to the respective directories of my phone.
These are the directories that I added with their specific files:​/system/priv-app/OnePlusCameraService/
/system/system_ext/priv-app/OnePlusCamera/
/system/system-ext/priv-app/OnePlusGallery/
Then I rebooted the phone expecting to see the OnePlus Camera working in all it's glory!...The phone got stuck in the boot logo.
The phone stays on the boot logo for some seconds, then reboots again but this time in Recovery mode and says this:
Can't load Android System. Your data may be corrupt. If you continue to get this message, you might need to perform a factory data reset and erase all user data store in this device.
Click to expand...
Click to collapse
I did the factory data reset but it did not work.
Now this might seem relatively easy to fix by using adb right? Well it is the worst moment to have the usb port damaged so until I fix that I have this beautiful OnePlus Paperweight.
The last detail is I actually deleted a folder which contained the .xml config files of the OOS Cam I installed on the second try because I thought it might cause some issues with the last try. Those files were on /system/data/
The phone have the bootloader open because I use a custom ROM and this one is called "/e/" which is based on Lineage OS. I used the wireless ADB function since my usb port is damaged, it jsut works as a charge port.
Again my main motive to this post is to understand "what did I do wrong?". I don't get why Android thinks the data is corrupted. The files are the official ones and as far I know I didn't deleted any important files. I even want to try with a more modern version of the app since I use the 6.4.45. This is the one that came on my phone the moment I opened the box. I want to see if the quality of the pictures got better with a newer one.
If you read this massive dump of text...thank you!

Categories

Resources