Dazzozo changed the topic of #huawei-g300 to: #huawei-g300 | G300 & Y300 innovation station | home of the G300's CyanogenMod port and mnupea | http://irclog.whitequark.org/huawei-g300 | https://dazzozo.com/L.png
moeter8 has quit [Ping timeout: 240 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 246 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 255 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 245 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 245 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 256 seconds]
tilal6991 has joined #huawei-g300
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 246 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 245 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 246 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 264 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 256 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 245 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 240 seconds]
moeter8 has joined #huawei-g300
moeter8 has quit [Ping timeout: 244 seconds]
moeter8 has joined #huawei-g300
Kirmaniarslan has joined #huawei-g300
Kirmaniarslan has quit [Client Quit]
Solitary has joined #huawei-g300
DeveloperDutch has joined #huawei-g300
DeveloperDutch has quit [Client Quit]
Shadowghoster has joined #huawei-g300
Xeo has joined #huawei-g300
<Dazzozo> oh god this thread again
<Dazzozo> please just forget it exists
<Dazzozo> theyre not releasing drivers because the fucking platform is EOL
<Dazzozo> do manufacturers release drivers for Windows 98?
<Dazzozo> NO
<Xeo> sorry.... but i hate them..... :(
<Dazzozo> you hate the wrong people
<Dazzozo> hate yourself for buying a shit phone
fonz93 has joined #huawei-g300
<Xeo> you are right Daz.
<Xeo> :(
<Dazzozo> they did literally nothing wrong here, they supported those platforms way beyond what they should've been
<Dazzozo> honestly im stunned they took msm7k stuff (though 7x27a isnt really "true" 7k) to ics
<Dazzozo> this tech is from like 2009, why do u keep buying
<fonz93> hello
<Dazzozo> hi
<Xeo> Hi fonz93
<Xeo> I dont wana buy ICS
<Xeo> Knowledge is way far to local public...
Xeo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Xeo has joined #huawei-g300
<Dazzozo> fonz93: "possible"?
<fonz93> i know almost nothing about java code
<fonz93> why is smaller?
<Dazzozo> read up on inheritance
<fonz93> the import lines?
<Dazzozo> no
<Dazzozo> class X extends Y
<Dazzozo> dealing with the telephony api isnt too difficult, it helps if youve been around for a while though
<Dazzozo> because you can just see what they changed in each android release
<fonz93> the Y in this case it's "RIL"?
<fonz93> it's coming from the source then?
<Dazzozo> well, two were removed
<Dazzozo> the old HuaweiQualcommRIL inherited QualcommSharedRIL, which inherited RIL
<Dazzozo> this new "HuaweiRIL" inherits RIL
<fonz93> oh
<fonz93> then it does the same thing
<Dazzozo> not necessarily
<Dazzozo> you need to actually understand the concept of inheritance
luca020400 has joined #huawei-g300
DeveloperDutch has joined #huawei-g300
<DeveloperDutch> Hello everyone
<luca020400> HI everyone ^^
<fonz93> hi
<Xeo> Hello everyone
Xeo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Xeo has joined #huawei-g300
Xeo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
DeveloperDutch has quit [Ping timeout: 246 seconds]
Solitary has quit [Remote host closed the connection]
Solitary has joined #huawei-g300
Weritos has joined #huawei-g300
<Weritos> Hi
<Weritos> I need your help on the camera platform mam8625 (CM11)
<Weritos> msm*
<Weritos> msm7x27a
Solitary has quit [Remote host closed the connection]
Solitary has joined #huawei-g300
Weritos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Weritos has joined #huawei-g300
<Weritos> Dazzozo,You helped to repair the camera on your smartphone LA-M1
<Weritos> I have a smartphone with 2 cores instead of 4 (LA-M1), and the camera is also 8 megapixels.
<Weritos> I used the source code for the camera (https://github.com/chil360/android_device_huawei_msm7x27a-common/tree/experimental/camera), all compiled, but the camera still does not work = (I'm trying to fix is already half a year = (((
fonz93 has quit [Quit: Leaving]
<luca020400> use prebuilt one
<Weritos> If use of the STOCK firmware library and not loaded
<luca020400> you need proper libs for get it working ofc
<Weritos> What is it?
<luca020400> libmmcamera libmmcamera2 and chromatix ( if exist )
<luca020400> *libchromaticx
<Weritos> Yes it is, I used the native libraries, but they are not loaded.
<Weritos> That's what the path of lib /hw, in the log says the library is not loaded
<luca020400> logcat ..
<luca020400> from boot and opening camera ( if icon appear =
<luca020400> can you give me only cam crash ?
<luca020400> np found it
<Shadowghoster> hey luca020400 ^^
<luca020400> hey
<Shadowghoster> My dad bought a new stereo-amplifier - sound is amazing
<Weritos> Log collected from libraries because of STOK there is no log only that the library is not loaded (as I understood from the library 4.1.2 are not compatible with 4.4.4)
<luca020400> are you using legacy stuff ?
<Weritos> Display?
<Weritos> TARGET_QCOM_DISPLAY_VARIANT := legacy
<luca020400> ok
srfarias has joined #huawei-g300
srfarias has quit [Quit: Page closed]
<Weritos> There are generally a chance for her job?
fonz93 has joined #huawei-g300
<Weritos> Here is the log from the native libraries
<Weritos> E/HAL ( 131): load: module=/system/lib/hw/camera.msm7x27a.so
<Weritos> E/HAL ( 131): dlopen failed: cannot locate symbol "cam_ops_stop" referenced by "camera.msm7x27a.so"...
<Weritos> E/CameraService( 131): Could not load camera HAL module
<fonz93> your source?
<Weritos> I have a smartphone with 2 cores instead of 4 (LA-M1), and the camera is also 8 megapixels.
<Weritos> I used the source code for the camera (https://github.com/chil360/android_device_huawei_msm7x27a-common/tree/experimental/camera), all compiled, but the camera still does not work = (I'm trying to fix is already half a year = (((
<Weritos> cm11
<fonz93> look at line 371 in camera/QCameraHAL.h
<fonz93> sorry
<fonz93> at camera/QCameraHWI.cpp
Flea997 has joined #huawei-g300
<Flea997> hi
<luca020400> hi
<fonz93> hi
<Shadowghoster> hi
<Weritos> fonz93,What to look for?
<Flea997> ?
<fonz93> in that lineyou can find "cam_ops_stop"
<fonz93> try to delete it and build again
<Weritos> And clearly, this issue of library firmware STOCK
<Weritos> But that is compiled from source, here the log
DeveloperDutch has joined #huawei-g300
<Weritos> fonz93,I found correspondence on the Internet
<Weritos> cybojenix which part? 16:47:23
<Weritos> Dazzozo there's one call in mctl_send_ctrl_cmd_done 16:47:42
<Weritos> Dazzozo and another in something else, I forgot 16:47:49
<Weritos> Dazzozo if you solve the first one you'll hit the second 16:48:00
<Weritos> Dazzozo i have a diff 16:48:54
<Weritos> Dazzozo it obv wont apply for you but if you apply it to our liboemcamera you could probably see the change 16:49:06
<Weritos> Dazzozo liboemcamera.so 16:49:27
<Weritos> Dazzozo 0004D286: 59 0B 16:49:27
<Weritos> Dazzozo 0004D287: B1 E0 16:49:27
<Weritos> Dazzozo 0004FC24: 32 06 16:49:27
<Weritos> Dazzozo 0004FC25: B1 E0 16:49:28
<Weritos> Dazzozo i dont have ours pushed to git yet tho 16:50:28
<Weritos> Dazzozo hang on
<Weritos> What's going on? =)
<Weritos> The assembly has just ended, working flashlight, but the camera does not work = (
<Weritos> Sources used camera msm7x27a
<Weritos> I/DEBUG ( 126): #01 pc 0004c7bd /system/lib/liboemcamera.so (mctl_send_ctrl_cmd_done+28)
<Weritos> I/DEBUG ( 126): #02 pc 0005100b /system/lib/liboemcamera.so (mctl_proc_v4l2_request+1866)
<Weritos> I/DEBUG ( 126): #03 pc 0004c98b /system/lib/liboemcamera.so
<Weritos> E/mm-libcamera2( 132): mm_camera_open: cannot get camera capabilities
<Weritos> E/mm-camera( 3243): qcamsvr_find_mctl_inst: no match for mctl_id = 0
<Weritos> E/mm-camera( 3243): qcamsvr_process_server_node_event: MSM_V4L2_CLOSE - cannot find mctl, mctl_id = 0
<Flea997> i'll be back
Flea997 has quit [Quit: Leaving]
Flea997 has joined #huawei-g300
<Flea997> back :D
<Weritos> =)
<Weritos> Can you help with the camera?
<fonz93> unfortunately i don't know how to help you
DeveloperDutch has quit [Ping timeout: 246 seconds]
nick____ has joined #huawei-g300
nick____ has quit [Ping timeout: 246 seconds]
Ale has joined #huawei-g300
<Weritos> Dazzozo,Only you can help me ...
<Weritos> Here's the log, gathered today, flashlight I earned But no camera https://www.filepicker.io/api/file/oqYDs3RLS9mgwuLNmLpy Вот лог......
Flea997 has quit [Ping timeout: 250 seconds]
fonz93 has quit [Quit: Leaving]
Solitary has quit [Remote host closed the connection]
<Dazzozo> lol GL with that bug
<Dazzozo> i solved that for us in like 2013
<Dazzozo> most under appreciated bug fix ever
<Dazzozo> you pissing about with libcamera isnt going to help, the issue is in liboemcamera if it IS the issue you pasted above
<Weritos> Can you help me? I have six months torturing camera
<Dazzozo> i cant really *help*, its something youre going to need to do yourself for your lib
<Weritos> What to do ??
<Dazzozo> the chat you found above is already good pointers
<Dazzozo> you have to hex edit 2 calls in liboemcamera
<Dazzozo> i think they were branch link calls
<Dazzozo> but i cant remember
<Dazzozo> your best bet is disassembling our unfixed and fixed lib to see where the difference was
<Dazzozo> and apply that knowledge to your own lib
<Dazzozo> ill get the commits
<Dazzozo> wherever i fucking put it
<Weritos> Yes, I looked, but they are different, I did not see where it was edited
<Weritos> Yes, I compared them but did not see the difference = (
<Dazzozo> you need to compare *our* old one and *our* new one
<Dazzozo> and you should see a few bytes difference
<Dazzozo> where the opcodes were changed
<Dazzozo> then, load them up in a disassembler so you can see *what* actually changed and apply that to your lib
<Weritos> Where can I get the "old" library?
<Dazzozo> im trying to find it now
<Dazzozo> apparently i didnt commit the old one though i remember telling myself to do so for clarity
<Dazzozo> but whatever
<Weritos> Out of stock firmware can take it?
<Dazzozo> our stock firmware, yeah
<Weritos> 4.1.2?
<Dazzozo> dont think we had stock 4.1.2
<Dazzozo> we had stock 4.1.1 lol
<Weritos> =)
<Dazzozo> im grabbing the stock rom now
<Weritos> You can look at my library? I was-would be grateful ..
<Weritos> I understand that you did long ago, but still ...
<Dazzozo> im not going to look at your lib, period
<Dazzozo> you have to do the work
<Weritos> If you like to know what else to edit ..
<Weritos> What is the "old" library to compare?
<Dazzozo> IM TRYING TO GET IT
<Dazzozo> but chrome is cancer
<Dazzozo> and i uninstalled it
<Dazzozo> hang on
<Dazzozo> okay i have both libs
<Dazzozo> ill throw them up somewhere
<Weritos> downloaded
<Weritos> A simple words because of what the camera does not work?
<Dazzozo> i cant remember the technical details
<Dazzozo> it was like 2 years ago
<Dazzozo> about all i can remember is some branch happens which results in a segfault
<Dazzozo> but if you hex compare those, you should find about 4 bytes difference
<Dazzozo> thats not very useful by itself, you'll need to load it up in a disassembler to find out what is actually changing on an assembly level
<Dazzozo> and then load up your own lib and reproduce that change
<Dazzozo> then stick that on the device and it should be ready to go
<Weritos> Thank U
<Weritos> Thank you, I'm going to try
Shadowghoster has quit [Quit: So das wars für den Moment,... aber ich komme wieder!]
Shadowghoster has joined #huawei-g300
Ale has quit [Quit: Leaving]
Weritos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Weritos has joined #huawei-g300
<Weritos> Created diff patch through IDA how to apply it to the library?
<Weritos> This difference file has been created by IDA Pro
<Weritos> liboemcamera.so
<Weritos> 0004C7B0: 32 06
<Weritos> 0004C7B1: B1 E0
<Weritos> 0004DE1E: 59 0B
<Weritos> 0004DE1F: B1 E0
DeveloperDutch has joined #huawei-g300
DeveloperDutch has left #huawei-g300 [#huawei-g300]
<Weritos> Dazzozo
<Weritos> Dazzozo,What's it for? I do not understand
<Dazzozo> youre asking how to apply the diff, heres a tool for applying the diff
<Dazzozo> any tool will do, or you can basically apply it by hand, its not exactly an incomprehensible format
<Dazzozo> its <offset>: <old_byte> <new_byte>
<Dazzozo> i mean it is only a 4 byte change
<luca020400> I start to hate git
<rymate1234> git is awesome
<luca020400> it take ages to fork a kernel :/
<Dazzozo> i dont think you realise quite how big a kernel with proper history is
<rymate1234> kernels aren't exactly small
<luca020400> This repository is temporarily unavailable.
<luca020400> The backend storage is temporarily offline. Usually this means the storage server is undergoing maintenance. Please contact support if the problem persists.
<luca020400> Check our status site for updates
<luca020400> lol
<Dazzozo> and thats github's fuck up
<rymate1234> well that isn't the fault of git
<luca020400> the 3rd time it happen
<luca020400> now it worked
<luca020400> finally
DeveloperDutch has joined #huawei-g300
<Dazzozo> low
<Dazzozo> power
<Dazzozo> audio
<Dazzozo> luca020400: you showed me this earlier
<luca020400> hmm I don't thin kso
<Dazzozo> you did, we talked about it
<Dazzozo> lol
<luca020400> it was fonz93 lol
<Dazzozo> oh
<Dazzozo> v0v
<luca020400> Anyway I shoudl read irclog
<DeveloperDutch> Yes it was fonz
<DeveloperDutch> Anyone knows why you can't find organization repo's in github search?
<luca020400> bye
luca020400 has quit [Quit: Leaving]
Hamed033 has joined #huawei-g300
<Weritos> Dazzozo
<Weritos> Dazzozo
<Weritos> Dazzozo, ll done, now writes chamber opens, click on the focus and closes with an error = (
Hamed033 has left #huawei-g300 [#huawei-g300]
DeveloperDutch has quit [Ping timeout: 246 seconds]
<Weritos> The camera works!
<Weritos> Dazzozzo thank you so much!
<Dazzozo> Weritos: np
<Weritos> A front camera, can somehow fix it?
<Weritos> Even there is no switch
Weritos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Shadowghoster is now known as Ghost|afk
luca020400 has joined #huawei-g300
luca020400 has quit [Client Quit]
luca020400 has joined #huawei-g300
<luca020400> Yeaa
<luca020400> Motorola released unified kernel
<luca020400> Moto e g x 1st and 2nd gen
Weritos has joined #huawei-g300
luca020400 has quit [Read error: Connection reset by peer]
Weritos has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]