[Q] lib files - Hero, G2 Touch General

maybe some one can help with this, when i push some *.so files to the lib folder, and then i reboot the device i stucked at the hero boot logo.
i replaced only some *.so files that already there, only these come from a other froyo sense rom.

What lib files did you push?
Sent from my Nexus One using xda premium

i want to push these:
libcameraservice.so
libcamera_client.so
libcamera.so
i wenn i got it right these files are to get the camera working in a sense froyo rom.
wenn not please correct me then

arnoslag said:
i want to push these:
libcameraservice.so
libcamera_client.so
libcamera.so
i wenn i got it right these files are to get the camera working in a sense froyo rom.
wenn not please correct me then
Click to expand...
Click to collapse
I thought there was _wrapper lib related to the camera but I think I'm thinking of something else. What does logcat say?
Sent from my Nexus One using xda premium

JieeHD said:
I thought there was _wrapper lib related to the camera but I think I'm thinking of something else. What does logcat say?
Sent from my Nexus One using xda premium
Click to expand...
Click to collapse
Working on this now aswell, Hope to have some result in the next hour

Ok well the logcat is pretty short. It just stops on the SDcard..
Code:
--------- beginning of /dev/log/system
I/Vold ( 83): Vold 2.1 (the revenge) firing up
D/Vold ( 83): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media
)
W/Vold ( 83): Ignoring unknown switch 'usb_configuration'
D/Vold ( 83): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
If you remove the SD card it is even shorter..
Code:
--------- beginning of /dev/log/system
I/Vold ( 83): Vold 2.1 (the revenge) firing up
D/Vold ( 83): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media
)
ow wait XD I did something stupid gonna retry now
---------- Post added at 10:37 AM ---------- Previous post was at 10:24 AM ----------
Ok no change , still same logcat

Well I tried my luck. But didn't get it to work. Got the same as lirasina.
Sent from my Hero using Tapatalk

Sorry but can someone tell me the exact files you're all pushing from what ROM and to which ROM. Slightly confused at the moment.

JieeHD said:
Sorry but can someone tell me the exact files you're all pushing from what ROM and to which ROM. Slightly confused at the moment.
Click to expand...
Click to collapse
These files
arnoslag said:
i want to push these:
libcameraservice.so
libcamera_client.so
libcamera.so
i wenn i got it right these files are to get the camera working in a sense froyo rom.
wenn not please correct me then
Click to expand...
Click to collapse
From HeroLatte 0.9 to ChoclateFroyo Rel 2

we are trying to push some *so files from herolatte froyo to chocolate froyo. To get the camera to work. Both are 2.2 sense roms. But i'm not sure with files that we have to push to get the camera working to in the chocolate rom.

still no luck, hopefuly some one have more luck then me.

Are the 2 roms not from different devices?
Sent from my Nexus One using xda premium

JieeHD said:
Are the 2 roms not from different devices?
Sent from my Nexus One using xda premium
Click to expand...
Click to collapse
herolatte 0.9 is running 2.2.1 ported from my touch 3g with a working camera,the chocolate sense rom has 2.2.1 ported from legend if m not mistaken,I don't think simply pushing the lib files would fix camera though ...
Sent from my HTC Hero using XDA App

That would be awsome if some1 could get the camera workin DD

Related

[Dev] Porting Roms, Error on loading natives

I'm not sure this is the right place, If it doesn't please remove my posts.
However..
I'm trying to make Oxygen 2.3.2 port for 2.6.35 kernel. (For test myself.)
I make zip and flashed it. It seems flashed and boot but got bootloop on that error code.
I/Netd ( 443): Netd 1.0 starting
I/rmt_storage( 446): rmt_storage user app start
I/rmt_storage( 446): rmt_storage open success
E/rmt_storage( 446): rmt_storage shared memory ioctl failed
Click to expand...
Click to collapse
Its looping..
Is there anyone to give some direction to me? I googled it many times, didn't find anything.
Notices:
I'm using latest libs, stock usr directory with oxygen apps, framework and busybox.
I don't have a linux and my this is not my computer, so I can't edit or touch the kernel. So I'm using stock kernel.
Ozgur desirenin .35 kernel icin olan romu var(son cikan) ona cm7 nin kerneli ni at calisir. Portlamak zor deil kerneller ugrastiriyo. Cm9 simdi biterdi ama kerneli duzenleyemedim. Turkce kaynak yok. Anlayamadim nasil duzenlendigini
Sent from my u8800 using XDA App
Do you have the partitions set for rmt_storage? Perhaps rmt_oeminfo is also needed?
Sent from my U8800
Try adding /system/bin/rmt_oeminfo and /system/bin/oem_rpc_svc
oguzhan mobile said:
Ozgur desirenin .35 kernel icin olan romu var(son cikan) ona cm7 nin kerneli ni at calisir. Portlamak zor deil kerneller ugrastiriyo. Cm9 simdi biterdi ama kerneli duzenleyemedim. Turkce kaynak yok. Anlayamadim nasil duzenlendigini
Sent from my u8800 using XDA App
Click to expand...
Click to collapse
You are allowed to speak other languages on the forum but please say the same in english also. Because if someone else is looking for help for the same question they find it and don't need to make another thread.
Blefish said:
Do you have the partitions set for rmt_storage? Perhaps rmt_oeminfo is also needed?
Sent from my U8800
Click to expand...
Click to collapse
Actually not. I try to use stock rmt_oeminfo and storage.
dzo said:
Try adding /system/bin/rmt_oeminfo and /system/bin/oem_rpc_svc
Click to expand...
Click to collapse
I try it Its worked but this time its got bootloop on Netd server start. So I'm starting over.
Something wrong with abd too. Sometimes Its not recognize the phone and not show it. Its make me crazy
Seems like I need to wait my pc because Its not getting any better for now and I must really learn how to /bin and /xbin works.
I found the problem about not recognizing the device on android. Its stock kernel problem. It disables the debug by default. Damn stock! I'm so nevbie at this =)
Sounds like you are doing fine. Keep it up
Sent from my u8800 using XDA App
arveparve said:
Sounds like you are doing fine. Keep it up
Sent from my u8800 using XDA App
Click to expand...
Click to collapse
Thanks.
Its looping again. Much work to do.
Code:
I/Netd ( 298): Netd 1.0 starting
W/dalvikvm( 303): ERROR: Unable to find decl for native Landroid/content/res/AssetManager;.initWithoutDefaultAsset:()V
E/JNIHelp ( 303): RegisterNatives failed for 'android/content/res/AssetManager'
E/AndroidRuntime( 303): Unable to register all android natives

[Q] ROM help...

didn't really wanna post this... but well... this shows how big of a ROM noob i am
can someone give me some help here with the Logcat i ran...
trying to port a ROM (not gonna tell you guys which yet )
this is a lil snippet (what i could get) from the Logcat i ran... the device booted alright, got past the splash screen... stayed at the bootanimation for awhile... but then bootloops. -__-
Thanks
What i did...
-porting a Sense 3.x ROM to the Mytouch 4G
-used/followed this guide here (very nice, good guide)
-edited build.prop
-changed boot.img (using the one from DARKSIDE Sense)
-Team MS
I didn't read through the whole thing but from the very beginning it said unknown permissions for some vital stuff so you may want to look around in the updater script and make sure those perms are there or in the init.rc file in the ram disk.gz file (which can only be found after decompiling the kernel)
Sent from my HTC Glacier using xda premium
Nicgraner said:
I didn't read through the whole thing but from the very beginning it said unknown permissions for some vital stuff so you may want to look around in the updater script and make sure those perms are there or in the init.rc file in the ram disk.gz file (which can only be found after decompiling the kernel)
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
ok... gonna decompile the boot.img...
it's weird though... i just used the boot.img from another Sense 3.0 (VU to be exact) and it doesn't boot?

[GUIDE] How to port MIUI v4 to your Device

Hi guys, last days i got messages about a guide port miui4 to each device.
that is my method i use on my miui4 ports.
take a any cm9 or aosp based ics rom as base. with this guide, you can port miui4 from any device to your one. for best compatibility use own brand base to port. if you have desire s then port from htc devices. if galaxy nexus then try port from nexus s
first of all replace complete folders with miui4 one.
system/app
system/framework
copy libandroid_runtime.so lib from miui 4 (rom you port). without this file rom will not boot. if you get bootloop, try with base libandroid_runtime.so file..
Click to expand...
Click to collapse
replace media folder with base rom (that themes, wallpaper, audio from miui work)
copy telocation.db and yellowpage.db to /system/etc folder.
copy content-types.properties file to /system/lib
copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
(for backup & themes app work)
Click to expand...
Click to collapse
copy liblbesec.so from miui 4 to /system/lib and give permission on updater-script
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
(for superuser app from miui work)
Click to expand...
Click to collapse
change values from build.prop
ro.build.id=MIUI
ro.build.display.id=MIUI
ro.build.version.incremental=2.x.x (version number)
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
Click to expand...
Click to collapse
if your base rom has issues, these issues will seen on this port too. example, if camera not works on base rom, then will on miui4 port also not work!
then add your stuff (updated apps, wallpaper or installer whatever you want )
make your zip and there is it. if you open your thread, dont forget give a link to based ics and port rom's.
that is method actually i use. for more info please use search on xda or ask on this thread. no private messages will answered from now.
(if you like this guide, just give 5 star and click to thanks button)
good good study day day up! thanks very much!
thanks for your guide, work with tablet this guide???
Thx a lot,good work,please help me galaxy3.
any tips for motorola defy users (suggested rom base)..wajk is developing on a miuiv4 rom already .. but i thought i could give this method a try .
thanks
Does it work on ARMV6 CPU like in Galaxy 3 ??
Is it possible to port miui tho HTC explore ?
HTC Sense 3.5,Android 2.3.5
antaine said:
Does it work on ARMV6 CPU like in Galaxy 3 ??
Click to expand...
Click to collapse
Same question here. But we have a cm9 rom all we need is miui but it I'd a arm6 device with ldpi screen
Sent from my GT-S5670 using xda premium
We dont have a ice sandwich Rom on the vivid/hoilday would it be possible to port One this way
Sent from my HTC PH39100 using XDA App
I can't say anything about ldpi and mdpi devices. Miui is designed for hdpi devices. This guide is for hdpi devices only..
Some guys got it working on Mdpi devices with resizing but i don't know how's.
come at me bro said:
We dont have a ice sandwich Rom on the vivid/hoilday would it be possible to port One this way
Sent from my HTC PH39100 using XDA App
Click to expand...
Click to collapse
I don't think. You need special kernel for that like cm9 .
Sent from my HTC Desire S using xda premium
Are you saying that it should work on ARMV6 and ARMV7 ldpi mdpi (with resized framework and apps) and hdpi?
This sucks, I never seen a beast of a phone with no development, I shoulda went with the gs2 or the 4s
Sent from my HTC PH39100 using XDA App
I didn't find liblbesec.so in SGS II's MIUI 4. It's normal?
co2gaz said:
I didn't find liblbesec.so in SGS II's MIUI 4. It's normal?
Click to expand...
Click to collapse
its libibesec.so
thanks a lot, great!
I've never even considered porting a rom, but I followed the instructions and it worked!
Only glitch: it thinks my slide out keyboard is out when it's in, and vice versa. Oh well. Thanks!
Sent from my epic 4g using Tapatalk
Brilliant guide! Managed to port MIUI to my ZTE Skate - an arm6 device using this!
"copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as")"
I'm really green when it comes to this stuff...just wondering how i'd go about giving it the permissions as above...? thanks
m4rk84 said:
"copy invoke-as from miui4 rom to /system/xbin and give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as")"
I'm really green when it comes to this stuff...just wondering how i'd go about giving it the permissions as above...? thanks
Click to expand...
Click to collapse
Its for advanced users, you should better leave it before you do something wrong and write here in the thread that you fried your Phone.
No offense.
Any idea if this should work on CAF ICS roms? Took a quick attempt without success, libdvm.so was failing in a bootloop - needed phone so didn't investigate much further.

[GUIDE] How to port AOSP ICS roms to your Device

How to port any ICS AOSP based roms to your Device (AOKP, CM9 & many other)
- for best compatibilty
--> use same android versions. (4.0.4 -> 4.0.4 example)
--> use latest base from CM9 (is best choose for port) or any AOSPbased ICS ROM
--> use each brand for port (mean Desire HD -> Desire S or other HTC devices). you also can port other roms, but you will have issues.
PORT:
-> download latest cm9 base and extract it
-> download target rom and extract it
for Camera
use Camera.apk from base rom for camera issues fix.
Click to expand...
Click to collapse
copy
/app
/framework
/media
/fonts folders and replace in cm9 folder.
repack your zip and let it boot.
if it doesn't boot then copy /system/lib/libandroid_runtime.so from target rom and repack your rom.zip and install again.. if you get bootloop anyway, then just type in adb "adb logcat" and share it with us in this thread..
if you dont get success dont cry, just try to port another rom you can not port all roms
for HTC Devices
to fix network auto select,
decompile framework-res.apk
go to \framework-res\res\values\bools.xml change
<bool name="skip_restoring_network_selection">true</bool>
to false.
Click to expand...
Click to collapse
to fix graphichal issues,
decompile framework.jar
change these files with cm9 base
smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer
Click to expand...
Click to collapse
Click to expand...
Click to collapse
enjoy!
if you like this guide, just give 5 stars to thread and click thanks button
hi, there, and i own a huawei u8800, we allready have a aosp ics 4.0.4 aurora room but i would like to have cm9 or aokp into our phone. in this case based is aosp ics aurora and ported will be cm9 or aokp for example? i´m right?
maybe is better port cm9 from desire z to my huawei u8800, since they have the same cpu and gpu.
dont want tou build a rom, just port.
please i need help. thanks anyway.
lol be thankful you have an ICS rom.. Huawei X6 users like me are trying our best to port from u8860's ICS.
I'd like to ask if the method works for a device that does not have official ICS? i.e. porting an ICS rom to official GB?
Kindly advise sir, and thanks again!
I get the same that in miui v4... boot loop and adb says no device
I get AtCmdFwd error.
Could you post the link of latest cm9 base?
im getting stuck in a bootloop...
INFO:
Device-Samsung Infuse
CM9 Base being used to port- http://forum.xda-developers.com/showthread.php?t=1601844
Rom trying to port- http://www.slimroms.com/ (the i9000 version aka galaxy s)
What i did:
1) opened cm9 base with 7zip, deleted app, framework, fonts, media folders
2) replaced deleted folders with app, framework, fonts and media folders from slim ics base 3.6
3) opened up slim ics 3.6 i9000 essentials with 7zip
4)navigated to app folder and moved apks files from ther to the cm9 base - did the same with framework, fonts, and media folders (I did not just copy the folders this time! i only copied the files inside the folders)
5) put zip on sdcard
6) rebooted and started log cat
any help would be apreciated if i dont answer back right away its because i have to pick my sister up from school
Here are the logcats: (All are the same logcat...but two of them are filtered)
I think I kniw what the problem is...gonna attemot a fix after dinner
EDIT i got out of the boot loops and booted into my portes slimics...now to fix the bugs...there is ALOT
thanks for the guide will def give you some credit once i get this stable...may be getting some help from another dev
So as long as the base and ported roms are from the same manufacturer, this will work?
Sent from my LG-E739 using Tapatalk 2
how to port aosp ics to cm9?
good guide
You can add
Copy etc\cron
And etc\init.d files to run RomControl fix
Am stuck at logo screen.
Can't get logcat because ADB can't find my device.
What to do?
Sent from my LG-E739 using Tapatalk 2
mg2195 said:
I think I kniw what the problem is...gonna attemot a fix after dinner
EDIT i got out of the boot loops and booted into my portes slimics...now to fix the bugs...there is ALOT
thanks for the guide will def give you some credit once i get this stable...may be getting some help from another dev
Click to expand...
Click to collapse
Can you please tell what was the problem and how did you fixed? Thanks.
medicjunKie said:
So as long as the base and ported roms are from the same manufacturer, this will work?
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
It would be sane screen res e.g HDPI to HDPI
And also the same processor type too helps
Sent from my LT15i using xda premium
see i hve a question...., what does base mean? does it mean the ics rom which i hve for my device already ported or any ics rom available for my device's manufacturer?
like my phone is samsung galaxy 3....so shud the base be the rom which is available for my g3 or it can be any ics rom like say ics rom for samsung galax s?
---------- Post added at 09:37 AM ---------- Previous post was at 09:36 AM ----------
i m seriously cponfused with that part..... m not gettin g what the base and the rom to be ported shud be?
My logcat ...?? what can i do? http://www.embedupload.com/?d=4HKCKXGIK2
I'm trying to port slimICS and it gets stuck at boot. Here's my logcat if it helps.
http://logcat.miui.us/893012
Zorua said:
I'm trying to port slimICS and it gets stuck at boot. Here's my logcat if it helps.
http://logcat.miui.us/893012
Click to expand...
Click to collapse
see here
Code:
169: E/dalvikvm( 1190): ERROR: couldn't find native method
170:
171: E/dalvikvm( 1190): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
172:
173: E/JNIHelp ( 1190): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting
baksmali classes.dex of services.jar
find PowerManagerService.smali file in the path com/android/server
add line
Code:
.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
tathanhlam66 said:
see here
Code:
169: E/dalvikvm( 1190): ERROR: couldn't find native method
170:
171: E/dalvikvm( 1190): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
172:
173: E/JNIHelp ( 1190): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting
baksmali classes.dex of services.jar
find PowerManagerService.smali file in the path com/android/server
add line
Code:
.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
Click to expand...
Click to collapse
I don't have the folder com/android/server/. What am I doing wrong?
EDIT: Wow, I sound so stupid. Nvm, I did that edit. I had to look up smali and baksmali guides. I'll flash it and see if it boots.
Okay, still refusing to boot.
New logcat: http://logcat.miui.us/894002
EDIT 2: Booted but storage isn't working.
Logcat: http://logcat.miui.us/889025
Zorua said:
EDIT 2: Booted but storage isn't working.
Logcat: http://logcat.miui.us/889025
Click to expand...
Click to collapse
Try decompiling the framework-res.apk and change the storage-list.xml in the xml folder.

Porting sense 4 [HELP NEEDED]

Hello all,
@thehacka1 is now working on a Sense 4 port for armv6. @xizt1boy, @4ndaKava and me are helping him.
Until now, everything went OK. There was a lot of smali editing (thehacka1 is amazing cause he spent hours and hours in front of his computer, working ), but errors disappeared one by one, and we hoped to finally make it boot.
But we're now facing an error :
logcat said:
E/JNIHelp ( 104): Native registration unable to find class 'com/android/server/NetworkManagementSocketTagger', aborting
Click to expand...
Click to collapse
Whatever we've tried didn't work. At first, we thought the class wasn't there, but it is there (in framework.jar) and contains exactly the same code that is in Sense 3.5 and cm9. Then we thought there was a problem with JNIHelp. We located JNIHelp.c in libnativehelper.so, and we replaced this lib with Sense 4 one (libc SIGILL), cm10 one (Netd error) and Sense 3.5 (also Netd error). Then we realised that some framework jars were not DexOpted at the first boot. So we modded BOOTCLASSPATH in init.rc to add the new jars, but it still doesn't work.
Do you guys have any ideas about how to fix this error ?
Thanks a lot !
izi501 said:
Hello all,
@thehacka1 is now working on a Sense 4 port for armv6. @xizt1boy, @4ndaKava and me are helping him.
Until now, everything went OK. There was a lot of smali editing (thehacka1 is amazing cause he spent hours and hours in front of his computer, working ), but errors disappeared one by one, and we hoped to finally make it boot.
But we're now facing an error :
Whatever we've tried didn't work. At first, we thought the class wasn't there, but it is there (in framework.jar) and contains exactly the same code that is in Sense 3.5 and cm9. Then we thought there was a problem with JNIHelp. We located JNIHelp.c in libnativehelper.so, and we replaced this lib with Sense 4 one (libc SIGILL), cm10 one (Netd error) and Sense 3.5 (also Netd error). Then we realised that some framework jars were not DexOpted at the first boot. So we modded BOOTCLASSPATH in init.rc to add the new jars, but it still doesn't work.
Do you guys have any ideas about how to fix this error ?
Thanks a lot !
Click to expand...
Click to collapse
maybe post the full logcat? ive helped port sense 3.5 and 4 to the epic 4g. libnative.so, libc net.d and a few other files are linked together which means you have to copy all of the ones together( or merge them which takes quite a while). a full logcat will help wonders though. thanks
Here is the requested logcat sir. Hope you know how to fix it.
Andy_nu said:
maybe post the full logcat? ive helped port sense 3.5 and 4 to the epic 4g. libnative.so, libc net.d and a few other files are linked together which means you have to copy all of the ones together( or merge them which takes quite a while). a full logcat will help wonders though. thanks
Click to expand...
Click to collapse
Which libs are linked together ?
Envoyé depuis mon HTC FeuSauvage S avec CM10.1
izi501 said:
Which libs are linked together ?
Envoyé depuis mon HTC FeuSauvage S avec CM10.1
Click to expand...
Click to collapse
try using lib.c, libnativehelper.so, libandroid_runtime, netd from sense to your base. then post another logcat.
Andy_nu said:
try using lib.c, libnativehelper.so, libandroid_runtime, netd from sense to your base. then post another logcat.
Click to expand...
Click to collapse
I added libnativehelper, libc, libandroid_runtime, libnetutils, libnetlink, libnetmgr, libnetmonitor and the bootanimation doesn't appear. It bootloops the kernel, in fact.
izi501 said:
I added libnativehelper, libc, libandroid_runtime, libnetutils, libnetlink, libnetmgr, libnetmonitor and the bootanimation doesn't appear. It bootloops the kernel, in fact.
Click to expand...
Click to collapse
give me
adb shell dmesg
and
adb logcat

Categories

Resources