[MTK Porting _ Fixing Bugs] Help! Videos cannot be played - Android Q&A, Help & Troubleshooting

Firstly, I'm sorry for my bad English.
I've just successfully ported and flashed a nougat rom using TWRP 3.2.1
My device's name is Mobiistar Lai Zumbo S (2016) (a phone made by Vietnam), the resolutions of rear and front camera are 13MP and 5MP. CPU MTK6735 (arm64) with 3Gb of Ram. No fingerprint support.
Here is the Stock Rom (android 6.0, kernel 3.18.19):
https://drive.google.com/ucid=0ByvKFb4ceCfWbldEblFqR2pWcTQ&export=download
Extracted Stock system.img:
https://mega.nz/#!ikEjVJqJ!ux4OV43ZLwfkh3tyukK2HC1nu6xTC0G1JKaIQ6uSZvc
2 Roms that I ported from (LOS 14.1 and RR 5.8.5 ported for MTK6735 and the same kernel version as stock, they all work and have the same problems)
https://www.androidgsmbd.com/mt6735-x64-7-1-2-resurrection-remix-v5-8-5-n-custom-rom-for-mt6735-kernel-3-18-19-mm/
https://sudroidtech.com/mt6735-7-1-2-lineage-os-14-1-n-custom-rom-mtk-mt6735-kernel-3-18-19/
*I followed the instruction here
https://forum.xda-developers.com/android/software-hacking/guide-port-64-mtk-roms-t3555933/page1
And what I replaced from stock to port were (system folder)
• lib and lib64
Libcameracustom.so (it fixed the cannot connect camera error)
‎hw folder, I copied files that have the names contain my CPU code, mt6735
‎deleted fingerprint.default.so in lib64
*etc
Firmware folder (deleted Port and copied from Stock)
apnconfig
spnconfig
agps_profile_conf2
media_codecs.xml
2 roms are working but I have to deal with those 3 annoying bugs
#1 Bug (main problem): As the title said, any video cannot be played.Videos recorded by camera cannot be played in gallery. Others like YouTube videos only played with audio and a black screen, YouTube Go, Facebook, Instagram displayed a text that notified that was like "error has occurred" or "this video cannot be played", kinda like that. Advertisement videos cannot be played too, they poped up and disappeared after a second or black screen like in YouTube.
#2 Rear Camera with lower resolution, only 8MP, although I set picture quality to High but it just increased the image file size not the true resolution and details in pictures taken.
#3 SD card corrupted with multi notifications at bootup (a small bug, I can stand this)
Lucky for me SD card still work. I ignored system suggest me to format the Micro SD. File Browser showed a lot of broken partition but the last one is working and it's the real SD card.
Here's what I tried replacing from Stock to Port for the purpose of fixing those bugs but it didn't work or caused bootloop.
*replaced all libs have names containing " codec" at once
*‎libdpframework.so and libvcodec.so at once
*libcameraservice.so
*system/bin vold, pq, sdcard at once
*System/bin/ media, mediaserver, netd, service, servicemanager, surfaceflinger at once
I currently use RR 5.8.5. What files should I replace more?
Or should I follow the instruction: https://forum.xda-developers.com/k3-note/development/guide-porting-64bit-mtk-roms-cross-t3310605
Please help me! Especially, I need videos to work fine, other bugs are optional to be fixed.
Thank you guys.
Many kind regards from Vietnam.
P/s: If you guys suggest copying some files, do I need to re-ported and flash again or just use a root explorer to replace files and reboot my phone?

Help me please

Related

working on HTC camera 4.11 drain issue Solved but inverted images

i am using touch IX gulum ,before installing cab files of htc camera 4.11 i copied all older camera files then compared them and came out with 5 suspected file which are
1. S5K3BAFX.dll
2. PoomIntegration.dll
3. HTCUtil.dll
4. HTCSourceFlt.dll
5. HtcRenderFlt2.dll
other files are moslty decoders or encoders
i need to know what do last 2 do, my main suspect is S5K3BAFX.dll because its for camera and wifi (discussed some where in prophet forum only) if i put the old file camera will not open and if i replace newer one and softreset camera starts but drain part i am still trying to understand, it is observed that even when not using camera battery drain overnight with original 4.11 installed is over 25%, where as it should be about 4 to 6 % overnight or less so its gonna be time consuming to test these files and one might have to specially replace S5K3BAFX.dll everytime he wants to use camera if this file is the culprit or may be we can cab original camera drivers too so that after we use camera we restore original ones to save power ,this is tiring process any suggestions are welcome.
solution is S5K3BAFX.dll,PoomIntegration.dll,HTCUtil.dll
steps are install the cab gullum camera4.11 file following link
http://rapidshare.com/files/67411076/HTC_Camera_411.CAB
then reset press ok
then upon reset replace with PoomIntegration.dll,HTCUtil.dll in given 3.zip in /windows directory
you are ready to use camera but with drain.
when camera is used replace with S5K3BAFX.dll(37kb) in 3.zip in /windows and softreset.
till when you next need to use camera replace S5K3BAFX.dll(45kb) in 4.zip in /windows ,else camera gives initiation error. (and may be reset) and viceversa .
ofcourse this eliminates power drain in offline mode means when you are not using camera which is more than 25% overnight a significant amount.
i still am keeping under observation
i still have very less time to find about PoomIntegration.dll,HTCUtil.dll but i gave the original ones since it comes with touch IX.
could this dll be opened with .NET
hi good to see that you are working on the camera
but you only need the camera.dll htccamera.dll htccamerautility.dll s5k3bafx.dll (s5k3bafx is the one causing battery drain) and registry setting for camera 4.11 all the other files that are needed for the camera to work are already in the rom.
gullum said:
hi good to see that you are working on the camera
but you only need the camera.dll htccamera.dll htccamerautility.dll s5k3bafx.dll (s5k3bafx is the one causing battery drain) and registry setting for camera 4.11 all the other files that are needed for the camera to work are already in the rom.
Click to expand...
Click to collapse
yes (thanx for IX) ,good news is that touch IX dropped only 2% overnight with older s5k3bafx.dll (37KB) ,so when i need to use camera i have to replace older with 4.11 s5k3bafx.dll (47KB)in 4.zip file and viceversa ,
i think alot of files are depending on s5k3bafx.dll so renaming it won't be a good choice neither in registry nor in /windows folder. i cannot make a code file which replaces this file and is run parallel with camera and then switches back to original file later on and performs a softreset if neccessary.
,there was a 2KB difference in HTCUtil.dll (18KB,20KB) so my judgement was based on difference in sizes beyond 1kb.that is why i changed PoomIntegration.dll,HTCUtil.dll .
p3400 or Trinity ( http://www.mobile-review.com/pda/review/htc-p3400-en.shtml )has wm5 but has camera 4.11 like its battery is same as prophet could some one reading this provide
camera.exe
camera.dll
htccamera.dll
htccamerautility.dll
s5k3bafx.dll
У меня ничего не получилось ....пишет что не возможно переместить S5k3bafx
looks like we need translator....
sory...For me nothing turned out ....say that it is not possible to move S5k3bafx
if this file is extracted the problem is solved (only one thing for wifi we will have to switch back to prophet s5k3bafx.dll) because this set don't has wifi but it has camera 4.11 it has 1250 mah battery like prophet all other features are the same except it doesn't have infrared and wifi.
which other platforms are using S5K3BAFX.dll camera driver? I think Gullum mentioned about Hermes somewhere in this forum. Is Artemis one of them too?
PoomIntegration.dll
• Support for the Pocket Outlook Object Model (POOM)
Check this Link: http://www.microsoft.com/downloads/...c1-f0f4-4fd6-9366-b61e0ab59565&DisplayLang=en
i need these p3400 gene files to test camera ,problem is this model is only in russia africa and south east asia i guess
Zakr said:
sory...For me nothing turned out ....say that it is not possible to move S5k3bafx
Click to expand...
Click to collapse
ok if it is not possible to copy ,please tell me the file size how much kilobyte is is? (like 35KB or 42 KB something like this what exact size do you see)
SOLVED drain issue the cab link given below is same as gullums 4.11 but with 2 files changed inside (S5K3BAFX.dll,HTCCamera.dll from 3.02 version ) camera works BUT screen is inverted and hence the photo is inverted and you have to adjust white balance to auto everytime ,tested on crystal v4 and gullum X beta ,battery drain is stable and under test too ,the inverted issue is due to may be because this rom is based closely to WIZA200 and where as identity shows it as PM300 and WIZA200 HTCCamera.dll might be needed, OR because of hardware issue because neither p3400 nor ELF (touch) have macro mode which means lens or camera is hardware inverted which means more modification to current situation but with battery drain solved i assume if i get the above both files for wiza200 and pm300 and original prophet wm5 i might be able to reinvert the inverted image.also i am unable to recall but i have read this inverted camera issue long time back.
Conclusion : you can use both cams 3.02 (with non inverted and some colour change due to codec issues) and 4.11 (inverted image colour not tested) with no battery drain on crystal v4 follow the steps unzip cam 3.02 on storage card and to operate it you would need to go to 3.02 folder and click camera.exe file inside it.incase you don't like you can always hard reset. this is not the final solution because image is inverted in cam 4.11 but 3.02 works fine , atleast now you can have them together .
NOTE : if you do not want to hard reset do not uninstall cam4.11 but instead unzip rar from step II(3.02) and put all those files in /windows folder and give softreset to device which would revert you back to cam 3.02 without headache of hard reset
HELP needed on : There must be a screen coordinate set registry value which i am not aware of yet because camera.exe or associated dll files can't be opened as far as i know but any help on these 2 issues (registry or exe ,dll file opening )is invited .
STEP I http://rapidshare.com/files/70162943/HTC_Camera_4.11modified.CAB.html
STEP II http://rapidshare.com/files/70296267/302files.rar.html
Finally Great job man!!! Testing right now
wow! sounds interesting! you're making a mission impossible possible (so many tried, and failed)! keep going, man!
Great job man, you are on the right way.
i noticed that the invertness occurs when u use the v3 camera drivers because it auto rotates....is that the same driver thats caussing the power issues on the v4 camera?
Yes simple explaination is original 4.11(file-S5K3BAFX.dll) causes drain (due to wifi integration in itself)
if we change only this file after we have installed original 4.11 with cam3.02 (file-S5K3BAFX.dll) camera will give initialisation error so we also have to replace cam3.02(file-HTCCamera.dll) to remove initialisation error which inturn causes the inverse,but drain issue gets solved.

▌brainmaster´s Guide for Android and Android Builds for Acer NeoTouch▐

First of all - I am not the creator of this Builds. All the credits are going to the guys who are compiling the needed stuff for our Acer (holo - for kernel for our Acer device, and many other guys from TG01 division, guys responsible for different Android builds and me - getting everything together).
I am only gathering them together and making it easy for you to install it on our Acer.
GUIDE:
​
In order to get Android to work properly on Acer you need a fast Micro SD Card at least Class 4. That is because Android runs from a SD Card, it's not ROM that you can flash. Also you need at least 1,5 GB of free space on your SD Card.
Many errors or problems on Android not booting on your device can be resolved if you format your Micro SD Card with the Panasonic SD Formater. Backup your files from the Micro SD Card, download the utility, run it and format your Card.
1. Download the Android Build zip file.
2. Unzip the file and copy the whole Android folder to your Micro SD Card. Remember - copy the WHOLE folder not the content of the folder.
3. Start the File Explorer and go to the Android folder on your SD Card. Start CLRCAD.exe, then start Haret.exe and click on the "Run" button.
4. Now Android is booting - it can take up to 15 minutes. DON'T touch anything until you see the Lockscreen.
5. Move the Lock to the right to unlock your device.
6. Play with Android.
HINTS:
​
Android is working from the SD Card. It takes 5 - 10 minutes for the system to work fluently. It is also good to reboot Android after first start.
You can hide the taskbar by sliding toward the taskbar with your finger. Sliding down from the taskbar opens the Notifications bar.
NOT WORKING: Everything except the Touchscreen and Graphics Acceleration. NO Sound, WI-Fi, Bluetooth, GPS, Phone. In the moment you can only play a little with the Android and customize it. With the time there will be more drivers added to the Android Builds.
RELEASES:
30.11.2010:
Initial Release - HyperDroid 1.7 is the Basis. Its Multilanguage Build - over 20 Languages.
DOWNLOAD.
Click to expand...
Click to collapse
KERNEL Updates for Android:
30.11.2010: Hardware buttons working, vibration working. Extract the image into the Android folder on your SD Card and overwrite the existing file. When you run Haret its gonna crash first time booting Android, but after the second try it runs good.
Click to expand...
Click to collapse
10.12.2010: Sound is now working - but it crashes sometimes. Extract the image into the Android folder on your SD Card and overwrite the existing file.
Click to expand...
Click to collapse
12.12.2010: Phone is working - it takes up to 5 minutes to connect to mobile network. Battery driver working, but always showing 50 %. Extract the image into the Android folder on your SD Card and overwrite the existing file.
Click to expand...
Click to collapse
ADDONS for Android:
In the attachments you can find the data.img file in different sizes: 512MB, 1GB, 2GB, 3GB or 4GB. You can use whichever you like. For testing purposes I am recommending the 512MB data.img
Click to expand...
Click to collapse
FIXES for Android:
SD Card fix: Just extract the folder from the zip file in your Android folder. Boot Android. The SD Card will be recognized automatically.
Click to expand...
Click to collapse
Reserved 4.
Support you
hello
dear brainmaster can you tell me the deference betwen this build and that from the rapid share.this has more than 240mb.that was only 75mb.
thank u very much for ur supoort.
xmaxin said:
dear brainmaster can you tell me the deference betwen this build and that from the rapid share.this has more than 240mb.that was only 75mb.
thank u very much for ur supoort.
Click to expand...
Click to collapse
The main difference is the Graphics Acceleration with Live Wallpapers and real Multilanguage support. There are also added apps and games.
The 75MB file is Android compiled for HTC Touch Diamond, the 240MB file is Android 2.2 Froyo compiled for HD2 that shares the same GPU as our Acer.
great news! think you !
Thx brainmaster, for this topic, hope will have many update in the future. You speak russian ?
salemxp said:
Thx brainmaster, for this topic, hope will have many update in the future. You speak russian ?
Click to expand...
Click to collapse
I will post updates as they come out and if I have time for it. But, because I myself have a big interest for Android everything I do for me I will also post here.
I don't speak Russian, but I can read and understand Russian.
can't off srceen. and i hope wifi working first. thanks
BIG MAN!
I will definitely donate my 20 euros as promised in another petition thread when the andriod becomes largely usable....
Please do not give up Brainmaster and others, we need you!
nighos said:
I will definitely donate my 20 euros as promised in another petition thread when the andriod becomes largely usable....
Please do not give up Brainmaster and others, we need you!
Click to expand...
Click to collapse
eur 30 from me
I can't run HyperDroid, it says: Searching Kernel (custom) and it don't go on
I've tried the kernel from this topic : http://forum.xda-developers.com/showthread.php?t=846777. And the good news is that it work with the acer, but TS have problems (calibration value must be recalculated). Why is good ? because TG01 and acer S200 have similar hardware, and the devs of this topic work hard to make android work on the toshiban, they already have 2 buttons that work, sound and vibration.
Hi guy.
For first thanks for Android for S200.
I've tried to launch like you said and it working.
But seems to me the touchscreen is not optimised for S200.
I don't really know if it's me or the compilation.
When you run Hatcher you can listen the connection (in order to have connection then Android start ?) but still not working.
Do you have any advices for starting in good base to this system ?
For me the first thing i'm looking is using Deezer application for my car, need to have french translation and connection working.
Can you help me to this ?
Kernel Updates Section added.
30.11.2010: Hardware buttons working, vibration working. Extract the image into the Android folder on your SD Card and overwrite the existing file. When you run Haret its gonna crash first time booting Android, but after the second try it runs good.
Click to expand...
Click to collapse
what about basic phone functions - calling, smsing? Are they working?
Great respect for you for reading and understanding russian and "hello" from acer-club.ru))

[Q] Camera related libraries?

Hi! I need to restore camera drivers in a chinese android phone. I accidentally flashed an early rom with a camera bug (only displayed front camera).
My friend has the same phone (working perfectly) so I could extract its camera libraries and transfer them to the other phone via root explorer.
Where are those drivers located in the phone?
Thanks
it is in media_profile.xml... i cant remember where does it store...

Problem with camera

Hello all! :victory:
Until now, the problems with the camera. Writes "Unknown error" and everything on it. What I've tried:
1. Formatted the memory card and ran the camera - 0 Effect
2. Folder of photos renamed to exclude tables in your gallery
3. Flash 2.1 and to follow the instructions http://forum.xda-developers.com/showthread.php?p=12061644 , the program copies all the files on the sdcard, then as I understand it fills them somewhere, and then writes the device: not found, many many lines, the phone restarts and the camera icon does not appear in the download mode.
4. Flash 1.6. camera works without mistakes (2.1 almost no mistakes, yet there are such errors, we have to restart the phone)
5. To the point decided to install ADB, thought due to the fact that it is not - will not install.
6. Disassemble the unit disconnects the camera and connected - the effect of zero
7. Blocked the bootloader by hand and updated through SEUS Pro, also for 0
+
8. I copy files manually and run init.es209ra.rc. - don't working =(
But there is a joke - a third-party application photographs, but does not remove. Yesterday needed a short video ... epic. Help please) has long been tormented with it, since 2012. The new module is not offered, it is necessary to finish off the old, if he does not come out - then buy, where to go...

How to make the new version of LG camera work properly on the G5

https://www.apkmirror.com/apk/lgelectronics/lg-camera/
I downloaded the new version of the LG camera from the above website, which could be installed normally, but couldn't be opened, there is an error message: unfortunately, the camera has stopped, however, I can open the front camera by long pressing the menu in the camera icon. The rear camera still can't work. How can I make the rear camera work normally?
I think that, although the package name is the same, the version 7 of the LG Camera has been taken from another phone. Of course there are many brilliant developers on XDA, but I don't think that making that app work is just a matter of bug fixing.
wuri said:
https://www.apkmirror.com/apk/lgelectronics/lg-camera/
I downloaded the new version of the LG camera from the above website, which could be installed normally, but couldn't be opened, there is an error message: unfortunately, the camera has stopped, however, I can open the front camera by long pressing the menu in the camera icon. The rear camera still can't work. How can I make the rear camera work normally?
Click to expand...
Click to collapse
it's to do with the camera_config file in system/etc.
if you have root, you can modify the file to get it working.
if you look at some ROMs avaliable, they have LG Camera 7 working, you may be able to use their files as a guide to modify your config to work.
jc9896 said:
it's to do with the camera_config file in system/etc.
if you have root, you can modify the file to get it working.
if you look at some ROMs avaliable, they have LG Camera 7 working, you may be able to use their files as a guide to modify your config to work.
Click to expand...
Click to collapse
Thank you, my mobile phone model is h868, cannot be rooted, it seems no way to solve.
wuri said:
Thank you, my mobile phone model is h868, cannot be rooted, it seems no way to solve.
Click to expand...
Click to collapse
[url]https://www.dropbox.com/s/ge8rqmfpy3nluh9/LG%20Camera%207.zip?dl=0[/URL]
try this out, not sure if it works. it does not replace your stock camera app, so you can still use that.
unzip and copy camera_config.xml to the root of your internal storage (/sdcard)
install the contained app normally, no root needed.
from my testing, everything works except cine mode, food mode and popout. Wide angle is a tiny bit odd. Manual video and Graphy features avaliable too.
Feel free to edit the config file to add or remove options.
Tested on a H860
jc9896 said:
[url]https://www.dropbox.com/s/ge8rqmfpy3nluh9/LG%20Camera%207.zip?dl=0[/URL]
try this out, not sure if it works. it does not replace your stock camera app, so you can still use that.
unzip and copy camera_config.xml to the root of your internal storage (/sdcard)
install the contained app normally, no root needed.
from my testing, everything works except cine mode, food mode and popout. Wide angle is a tiny bit odd. Manual video and Graphy features avaliable too.
Feel free to edit the config file to add or remove options.
Tested on a H860
Click to expand...
Click to collapse
I tried and it worked, it's amazing, but some features are still faulty, as follows: cine video, popout, food, panorama, 360panorama, flash jump-cut, and application will crash when click sticker in self-timer mode, and can not change photo storage to sd card, thanks for your job, you are very kind.
wuri said:
I tried and it worked, it's amazing, but some features are still faulty, as follows: cine video, popout, food, panorama, 360panorama, flash jump-cut, and application will crash when click sticker in self-timer mode, and can not change photo storage to sd card, thanks for your job, you are very kind.
Click to expand...
Click to collapse
some features are impossible without root as they require files in the system.
those features you mentioned require files not included with the G5.
jc9896 said:
some features are impossible without root as they require files in the system.
those features you mentioned require files not included with the G5.
Click to expand...
Click to collapse
I get it,thanks.

Categories

Resources