[NEED HELP][NOT BOOTIN'] Sont Xperia Z3 Lollipop stock rom port to Nexus 5 - Nexus 5 Developer Discussion [Developers Only]

I did a new port, see OP
I have bootanimation

Hopefully this helps
When I first saw this the first thing that came to mind was finding all the needed hardware files and putting them in the port. Now I looked over the logcat and sure enough it has hardware errors. You re having gralloc issues and hwcomposor issues. I stopped looking after I saw surfaceflinger as right after that is when the crash starts. In my opinion these are the main two issues stopping boot.
Gralloc issue
Code:
E/HAL ( 176): load: module=/system/lib/hw/gralloc.msm8974.so
E/HAL ( 176): dlopen failed: cannot locate symbol "_ZN13AdrenoMemInfo9getStrideEii" referenced by "gralloc.msm8974.so"...
Hwcomposor issue
Code:
E/HAL ( 176): load: module=/system/lib/hw/hwcomposer.msm8974.so
E/HAL ( 176): dlopen failed: cannot locate symbol "_ZN7overlay6RotMem3Mem12setReleaseFdERKi" referenced by "hwcomposer.msm8974.so"...
Now you have way more issues than those but those should be your focus right now. You will have to get the correct hardware files for hamerhead and use them to replace the hardware files for that are for the Xpeira Z3. But even if you get it booting you will have camera issues along with a lot more stuff. You may even have to decompile the framworks.apk and edit smali files to look for the correct hardware files and to use different strings.
Now I have to say I am not even sure if what you are attempting can even be done. I do wish you luck and hopefully what I posted here will help you move forward some.

T-Macgnolia said:
When I first saw this the first thing that came to mind was finding all the needed hardware files and putting them in the port. Now I looked over the logcat and sure enough it has hardware errors. You re having gralloc issues and hwcomposor issues. I stopped looking after I saw surfaceflinger as right after that is when the crash starts. In my opinion these are the main two issues stopping boot.
Gralloc issue
Code:
E/HAL ( 176): load: module=/system/lib/hw/gralloc.msm8974.so
E/HAL ( 176): dlopen failed: cannot locate symbol "_ZN13AdrenoMemInfo9getStrideEii" referenced by "gralloc.msm8974.so"...
Hwcomposor issue
Code:
E/HAL ( 176): load: module=/system/lib/hw/hwcomposer.msm8974.so
E/HAL ( 176): dlopen failed: cannot locate symbol "_ZN7overlay6RotMem3Mem12setReleaseFdERKi" referenced by "hwcomposer.msm8974.so"...
Now you have way more issues than those but those should be your focus right now. You will have to get the correct hardware files for hamerhead and use them to replace the hardware files for that are for the Xpeira Z3. But even if you get it booting you will have camera issues along with a lot more stuff. You may even have to decompile the framworks.apk and edit smali files to look for the correct hardware files and to use different strings.
Now I have to say I am not even sure if what you are attempting can even be done. I do wish you luck and hopefully what I posted here will help you move forward some.
Click to expand...
Click to collapse
I replaced these files already, from a hammerhead Cm12 nightly :/

dekefake said:
I replaced these files already, from a hammerhead Cm12 nightly :/
Click to expand...
Click to collapse
You may need other files or maybe even need to edit framworkes.apk to allow the files to be used by the system. What I am saying is just because they are present doesn't mean the system will use them. Look closely at the errors I pointed out as it will give you some idea of what to do.it says cannot find symbol blah blah blah. You need to find where that symbol is in the CM ROM and make sure it is in your port.

T-Macgnolia said:
You may need other files or maybe even need to edit framworkes.apk to allow the files to be used by the system. What I am saying is just because they are present doesn't mean the system will use them. Look closely at the errors I pointed out as it will give you some idea of what to do.it says cannot find symbol blah blah blah. You need to find where that symbol is in the CM ROM and make sure it is in your port.
Click to expand...
Click to collapse
Framework-res.apk file from Sony doesnt want to decompile properly. Using latest Apktool for Lollioop

T-Macgnolia said:
You may need other files or maybe even need to edit framworkes.apk to allow the files to be used by the system. What I am saying is just because they are present doesn't mean the system will use them. Look closely at the errors I pointed out as it will give you some idea of what to do.it says cannot find symbol blah blah blah. You need to find where that symbol is in the CM ROM and make sure it is in your port.
Click to expand...
Click to collapse
Sucedded to decompile framework-res.apk..
Replaced storage list by Nexus 5 one, and power profiles, but can't find anything about _ZN* :/
Still sticks to the same on logcat

dekefake said:
Sucedded to decompile framework-res.apk..
Replaced storage list by Nexus 5 one, and power profiles, but can't find anything about _ZN* :/
Still sticks to the same on logcat
Click to expand...
Click to collapse
these are native methods(you wont find in smali files), you can use armobjectdump/hexedit to look which files have, my bet would be you either needing to replace some of our files with the z3(hw files) or replacing some system libs(the one where the code needs to exist).
another bet would be trying to use our caf libs,however AFAIk would need changes to the kernel

Just to say i restarted a new project (look OP)
New logcat to debug.
Thanks in advance for help

Related

no rule to make target...libcamera.so

Hi guys, I've been wracking my brain on this on for a few hours now and I'm not getting anywhere.
I'm building AOSP from scratch. I've got all my proprietary libs copied over correctly but I'm getting the following error:
Code:
No rule to make target `vendor/htc/__DEVICE__/proprietary/libcamera.so', needed by `out/target/product/inc/obj/lib/libcamera.so'
I've done some extensive google searching, but nothing seems to explain it. I tried copying the library to obj/lib manually as well as system/lib, but it still errors out.
Any suggestions?
Thanks, Matt.
mattwood2000 said:
Hi guys, I've been wracking my brain on this on for a few hours now and I'm not getting anywhere.
I'm building AOSP from scratch. I've got all my proprietary libs copied over correctly but I'm getting the following error:
Code:
No rule to make target `vendor/htc/__DEVICE__/proprietary/libcamera.so', needed by `out/target/product/inc/obj/lib/libcamera.so'
I've done some extensive google searching, but nothing seems to explain it. I tried copying the library to obj/lib manually as well as system/lib, but it still errors out.
Any suggestions?
Thanks, Matt.
Click to expand...
Click to collapse
Out of curiosity, why are you building from scratch and not using an aosp based rom like CyanogenMod 7? I can't help you with your issue, i'm just curious.
When you say you have your proprietary libs, you mean that you ran the extract-files.sh before building?
jermaine151 said:
When you say you have your proprietary libs, you mean that you ran the extract-files.sh before building?
Click to expand...
Click to collapse
Yes and no - I manually copied over some of the files. I'm using this as a learning experience so I purposely didn't copy everything. However, I did grab all the proprietary libs (i.e libcamera.so, libhtc_ril.so, libEGL_adreno200.so, etc.).
I'm just wondering where in the build process it's getting hung up.
Thanks, Matt.
Look in the vendorblobs no rule to make can be missing file or broken path
I would suggest reading the .mk files from the device/vendor tree
But to find where your error comes run a search the text libcamera.so within the files be sure you include the entire project in your search ... it will take a while to search
Sent from my DROID2 using Tapatalk
mattwood2000 said:
Yes and no - I manually copied over some of the files. I'm using this as a learning experience so I purposely didn't copy everything. However, I did grab all the proprietary libs (i.e libcamera.so, libhtc_ril.so, libEGL_adreno200.so, etc.).
I'm just wondering where in the build process it's getting hung up.
Thanks, Matt.
Click to expand...
Click to collapse
Well, the script is there to eliminate user error, so I'd start over, run the script, and see what happens.

rom logcat error help

i am trying to get into port roms and stuff well i tried to port pac from the giothread but am stuck at bootloop since two days
could anyone good ant reading and understanding logcat help me regarding errors the link below is of errors
http://pastebin.com/1wV0cdU4:good:
no fatalities in the whole process... scanning for warnings now ......
warnings : http://pastebin.com/pSxvPG2L
checking for debugs now........
There are some Library errors, some classes errors, also some unknown permission.
Are you copied right library and classes to ROM ?
Also, you can fix permission related errors by placing right .xml in /system/etc/permission
F4uzan said:
There are some Library errors, some classes errors, also some unknown permission.
Are you copied right library and classes to ROM ?
Also, you can fix permission related errors by placing right .xml in /system/etc/permission
Click to expand...
Click to collapse
I tried to fix lib errors but the required libs are just not there either in base or port
Sent from my GT-S5570 using Tapatalk 2

[Broken Screen]Gotta be something to do

Hello developers, this is my first time posting here.
My problem is that i have a broken screen and can't acces anything. The only light i see it's on the menu and back buttons and the thing is that i desperately need to get back my data from the phone. I've done some research here and tried the screencast method and first java screencast app didn't work at all , then it didn't find my device and now it recognized my device but i'm getting this error:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: code = 2 message= No such file or directory
at net.srcz.android.screencast.api.injector.Injector.uploadAgent(Injector.java:52)
at net.srcz.android.screencast.api.injector.Injector.init(Injector.java:162)
at net.srcz.android.screencast.api.injector.Injector.access$0(Injector.java:155)
at net.srcz.android.screencast.api.injector.Injector$1.run(Injector.java:26)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: code = 2 message= No such file or directory
at net.srcz.android.screencast.api.AndroidDevice.pushFile(AndroidDevice.java:51)
at net.srcz.android.screencast.api.injector.Injector.uploadAgent(Injector.java:49)
... 3 more
Caused by: java.lang.RuntimeException: code = 2 message= No such file or directory
at net.srcz.android.screencast.api.AndroidDevice.pushFile(AndroidDevice.java:48)
... 4 more
and the only thing i see is like it work but i only see blank , i mean i don't see my scren , i see the menu, explore, back and stuff buttons . i also see my data when exploring it and can play songs from it but can't get the photos and music back in my pc.
I tried with kies and moborobo too but i think that usb debugging is disabled.
Any help would be appreciated, thanks.
for real? no one has any ideea ?
Were you on stock when your screen broke?
Sent from my GT-P7510 using Tapatalk HD
what means on stock ?
Standard Samsung Android Firmware.
i feel so retarded,i don't know what that is
can something be done to save my files?
i'll pay if needed , pls can someone help me with this one?

[Q] Not loading class from Classes2.dex?

I'm trying to hook the following: com.google.android.ulr.ApiRate
It's in com.google.android.gms (Google Play Services). I verified it's in there by dex dumping the Classes2.dex from Play Services.
At runtime, I get this:
Code:
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.google.android.ulr.ApiRate
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.ulr.ApiRate" on path: DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/data/app/com.google.android.gms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.google.android.gms-2, /vendor/lib, /system/lib, /vendor/lib]]
The only thing I can think of is that it's because it's in Classes2.dex instead of Classes.dex?
Any thoughts?
Looks like you got this fixed. What was the problem?
GermainZ said:
Looks like you got this fixed. What was the problem?
Click to expand...
Click to collapse
I wasn't able to fix it. I tried using multidex but never got it working. In the end, i had to dig through a lot of projects dalvik bytecode and follow the call stack back to a place defined in classes.dex, then hook it there. Not ideal, and more chances for side effects, but things seem to be working
I'd love to see a fix at some point!
cryptyk said:
I wasn't able to fix it. I tried using multidex but never got it working. In the end, i had to dig through a lot of projects dalvik bytecode and follow the call stack back to a place defined in classes.dex, then hook it there. Not ideal, and more chances for side effects, but things seem to be working
I'd love to see a fix at some point!
Click to expand...
Click to collapse
Could you point me in the right direction here? com.google.android.a.r seems to be pretty close. Lots of references to DexClassLoader.
cryptyk said:
I'm trying to hook the following: com.google.android.ulr.ApiRate
It's in com.google.android.gms (Google Play Services). I verified it's in there by dex dumping the Classes2.dex from Play Services.
At runtime, I get this:
Code:
de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.google.android.ulr.ApiRate
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.ulr.ApiRate" on path: DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/data/app/com.google.android.gms-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.google.android.gms-2, /vendor/lib, /system/lib, /vendor/lib]]
The only thing I can think of is that it's because it's in Classes2.dex instead of Classes.dex?
Any thoughts?
Click to expand...
Click to collapse
I guess this is caused by using the wrong class loader.
Try finding the class with classForName by specifying another class loader:
http://developer.android.com/refere....lang.String, boolean, java.lang.ClassLoader)
You will need to find a way to get to another class loader though.
Found a surprisingly easy way to hook any class needed from Play Services. Just hook the Application onCreate. It looks like the initial package class loader will only have the initial dex file loaded. After loading the initial application instance GMS will at some point, I'm guessing, load the additional dexes. The GMS Application Context appears to have a fully loaded class loader associated with it. Tapping into that will give you access to whatever you need. Much simpler than I expected and resistant to per-release obfuscation.

[Q] GetFilesAsync() in chunks?

Is there a way to split Files from GetFilesAsync in chunks? The problem on low memory devices is a "out of memory exception", when reading many files from StorageFolder (100+).
andy123456 said:
Is there a way to split Files from GetFilesAsync in chunks? The problem on low memory devices is a "out of memory exception", when reading many files from StorageFolder (100+).
Click to expand...
Click to collapse
when you try to get file names in a string and show in a messagebox
I think it will have no errors.
if you get error again i don't know what to do .
but if you didn't get error it means your code has problem .
maybe better to use ListBox to make large lists .
My code to read the files is simple:
Code:
StorageFolder cameraRollFolder = KnownFolders.CameraRoll;
IReadOnlyList<StorageFile> cameraRollFiles = await cameraRollFolder.GetFilesAsync();
But i dont need the file names only, with cameraRollFiles i then process further.
andy123456 said:
My code to read the files is simple:
Code:
StorageFolder cameraRollFolder = KnownFolders.CameraRoll;
IReadOnlyList<StorageFile> cameraRollFiles = await cameraRollFolder.GetFilesAsync();
But i dont need the file names only, with cameraRollFiles i then process further.
Click to expand...
Click to collapse
I know you don't need only FileNames .
with these 2 lines only you will get out of memory error , yes ?
I think the problem is there on one of the two lines. After i get the files async, im performing an upload operation withTransferContentPart. I dont know exactly where the error occurs, but i think its there, because StorageFile has all files read async and this is loaded in memory, or do i missu derstand that? The maximum amount of files, without exception, is 120 files. Do i get more files, the exception was thrown. The size of the files are 19kb (testimages from wp8.1 emulator). The size isnt a problem, i proceed this with a 1GB file, without any problem.
andy123456 said:
I think the problem is there on one of the two lines. After i get the files async, im performing an upload operation withTransferContentPart. I dont know exactly where the error occurs, but i think its there, because StorageFile has all files read async and this is loaded in memory, or do i missu derstand that? The maximum amount of files, without exception, is 120 files. Do i get more files, the exception was thrown. The size of the files are 19kb (testimages from wp8.1 emulator). The size isnt a problem, i proceed this with a 1GB file, without any problem.
Click to expand...
Click to collapse
select the first line of your code and then press F9 on your keyboard .
then you will see Yellow lines while Debugging lines of code .
you have to click continue key or press F10 key to see where the error will appear .
another way ( a silly way ) is to set try {} and catch {} for each line and set catch to message you Error Line and for example Loop Counter and etc.
Ok this error happens on my uploadoperation, exactly on
upload.StartAsync();
But only with many files in the camera roll.
andy123456 said:
Ok this error happens on my uploadoperation, exactly on
upload.StartAsync();
But only with many files in the camera roll.
Click to expand...
Click to collapse
I don't know about Upload Method
sorry
The code is performing in a baclground task, can this be the problem?
I rechecked that and its definitely not the GetFilesAsync() from StorageFile. The problem seems to be the BackgroundTrasnferContentPart, which seems to load all Files in Memory and causes the OutOfMemory Exception.
Any suggestions how to solve this problem?

Categories

Resources