[ROM][WIP][DEV] SENSE 2.1 Port to P500( Wildfire Based)

Status
Not open for further replies.

sam_0829

Senior Member
Mar 14, 2012
538
1,300
0
Ahmedabad
OK..a lill idea.... this may work.. in framework.jar replace telephony folder in com/android/internal telephony from sense 2.1 and also add lgqualcomril.. check build.prop if it is calling for lgqualcomril

also could not create.......... is this the only log for fc!!

Sent from my LG-P500 using Tapatalk 2 Beta-5
Man thats the prblm 4 me...I can't decompile framework.jar of HTC.I can decompile of cm7 bt 4 htc it gives error of .dex file ...how do u decompile it guys????:confused::confused:

Sent from my LG-P500 using XDA
 

mastershefis

Senior Member
Mar 16, 2011
756
920
0
Amsterdam
Man thats the prblm 4 me...I can't decompile framework.jar of HTC.I can decompile of cm7 bt 4 htc it gives error of .dex file ...how do u decompile it guys????:confused::confused:

Sent from my LG-P500 using XDA
U have to use correct framework-res.apk to decompile it.. I did found some strange lines in framework.jar what is linked to htc.framework.jar..it's little bit complicated :)
 
  • Like
Reactions: sam_0829

sam_0829

Senior Member
Mar 14, 2012
538
1,300
0
Ahmedabad
U have to use correct framework-res.apk to decompile it.. I did found some strange lines in framework.jar what is linked to htc.framework.jar..it's little bit complicated :)
I m using the correct framework-res.apk but it gives the error that out of memory Java heap size....:confused:

Sent from my LG-P500 using XDA
 

tudorsirb

Inactive Recognized Developer
Dec 10, 2010
603
1,385
93
Timisoara
When i decompiled htc framework i had to load resources in apk tool.

command should be like
Code:
apktool if XXXXX
where XXXXXX stands for com.htc.resources.apk, com.htc.framework.jar, framework-res.apk

i don't know exactly what resource you need, try this and it should work.

Also, read this for further documentation: http://code.google.com/p/android-apktool/wiki/FrameworkFiles

EDIT: If you don't know how to do this, PM me a link with your latest rom and i will try and modify it for you when i have some time.

For telephony you should decompile framework.jar
 
Last edited:
  • Like
Reactions: sam_0829

sam_0829

Senior Member
Mar 14, 2012
538
1,300
0
Ahmedabad
When i decompiled htc framework i had to load resources in apk tool.

command should be like
Code:
apktool if XXXXX
where XXXXXX stands for com.htc.resources.apk, com.htc.framework.jar, framework-res.apk

i don't know exactly what resource you need, try this and it should work.

Also, read this for further documentation: http://code.google.com/p/android-apktool/wiki/FrameworkFiles

EDIT: If you don't know how to do this, PM me a link with your latest rom and i will try and modify it for you when i have some time.

For telephony you should decompile framework.jar
I loaded the resources...the problem is weird ....its of Java heap size....it is not able to decompile becoz the lack of free memory of Java...should try to increase the heap memory...have some idea of that bt not for apktool....

Sent from my LG-P500 using XDA
 

tudorsirb

Inactive Recognized Developer
Dec 10, 2010
603
1,385
93
Timisoara
So, i moddified framework.jar, after 10 minutes it booted but com.android.phone keeps crashing. Also, i have no GSM. Maybe I'm missing something?
Code:
W/ResourceType( 4319): getEntry failing because entryIndex 45 is beyond type ent
ryCount 23
W/ResourceType( 4319): Failure getting entry for 0x010d002d (t=12 e=45) in packa
ge 0 (error -2147483647)
D/AndroidRuntime( 4319): Shutting down VM
W/dalvikvm-sfm( 4319): threadid=1: thread exiting with uncaught exception (group
=0x40018590)
E/AndroidRuntime( 4319): FATAL EXCEPTION: main
E/AndroidRuntime( 4319): java.lang.RuntimeException: Unable to create applicatio
n com.android.phone.PhoneApp: android.content.res.Resources$NotFoundException: R
esource ID #0x10d002d
E/AndroidRuntime( 4319):        at android.app.ActivityThread.handleBindApplicat
ion(ActivityThread.java:3803)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.access$2200(Activi
tyThread.java:132)
E/AndroidRuntime( 4319):        at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1082)
E/AndroidRuntime( 4319):        at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 4319):        at android.os.Looper.loop(Looper.java:143)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.main(ActivityThrea
d.java:4268)
E/AndroidRuntime( 4319):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 4319):        at java.lang.reflect.Method.invoke(Method.java:5
07)
E/AndroidRuntime( 4319):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 4319):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:597)
E/AndroidRuntime( 4319):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 4319): Caused by: android.content.res.Resources$NotFoundExcept
ion: Resource ID #0x10d002d
E/AndroidRuntime( 4319):        at android.content.res.Resources.getValue(Resour
ces.java:901)
E/AndroidRuntime( 4319):        at android.content.res.Resources.getBoolean(Reso
urces.java:683)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.RIL.<init>(RIL
.java:628)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.PhoneFactory.m
akeDefaultPhone(PhoneFactory.java:131)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.PhoneFactory.m
akeDefaultPhones(PhoneFactory.java:63)
E/AndroidRuntime( 4319):        at com.android.phone.PhoneApp.onCreate(PhoneApp.
java:1600)
E/AndroidRuntime( 4319):        at android.app.Instrumentation.callApplicationOn
Create(Instrumentation.java:1005)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.handleBindApplicat
ion(ActivityThread.java:3800)
E/AndroidRuntime( 4319):        ... 10 more
D/dalvikvm-sfm( 4319): GC_CONCURRENT freed 145K, 46% free 3051K/5639K, external
0K/0K, paused 4ms+5ms
D/WidgetView_Card( 4197): message widget observer onChange, isDelete false
D/WidgetView_Card( 4197): MyChangeObserver onChange: not in foreground now. set
m_bNeedRefreshUI = true
D/ContactMessageStore( 4319): notify MmsSms
W/ActivityManager( 1934): Process com.android.phone has crashed too many times:
killing!
 

sam_0829

Senior Member
Mar 14, 2012
538
1,300
0
Ahmedabad
So, i moddified framework.jar, after 10 minutes it booted but com.android.phone keeps crashing. Also, i have no GSM. Maybe I'm missing something?
Code:
W/ResourceType( 4319): getEntry failing because entryIndex 45 is beyond type ent
ryCount 23
W/ResourceType( 4319): Failure getting entry for 0x010d002d (t=12 e=45) in packa
ge 0 (error -2147483647)
D/AndroidRuntime( 4319): Shutting down VM
W/dalvikvm-sfm( 4319): threadid=1: thread exiting with uncaught exception (group
=0x40018590)
E/AndroidRuntime( 4319): FATAL EXCEPTION: main
E/AndroidRuntime( 4319): java.lang.RuntimeException: Unable to create applicatio
n com.android.phone.PhoneApp: android.content.res.Resources$NotFoundException: R
esource ID #0x10d002d
E/AndroidRuntime( 4319):        at android.app.ActivityThread.handleBindApplicat
ion(ActivityThread.java:3803)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.access$2200(Activi
tyThread.java:132)
E/AndroidRuntime( 4319):        at android.app.ActivityThread$H.handleMessage(Ac
tivityThread.java:1082)
E/AndroidRuntime( 4319):        at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 4319):        at android.os.Looper.loop(Looper.java:143)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.main(ActivityThrea
d.java:4268)
E/AndroidRuntime( 4319):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 4319):        at java.lang.reflect.Method.invoke(Method.java:5
07)
E/AndroidRuntime( 4319):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 4319):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:597)
E/AndroidRuntime( 4319):        at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 4319): Caused by: android.content.res.Resources$NotFoundExcept
ion: Resource ID #0x10d002d
E/AndroidRuntime( 4319):        at android.content.res.Resources.getValue(Resour
ces.java:901)
E/AndroidRuntime( 4319):        at android.content.res.Resources.getBoolean(Reso
urces.java:683)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.RIL.<init>(RIL
.java:628)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.PhoneFactory.m
akeDefaultPhone(PhoneFactory.java:131)
E/AndroidRuntime( 4319):        at com.android.internal.telephony.PhoneFactory.m
akeDefaultPhones(PhoneFactory.java:63)
E/AndroidRuntime( 4319):        at com.android.phone.PhoneApp.onCreate(PhoneApp.
java:1600)
E/AndroidRuntime( 4319):        at android.app.Instrumentation.callApplicationOn
Create(Instrumentation.java:1005)
E/AndroidRuntime( 4319):        at android.app.ActivityThread.handleBindApplicat
ion(ActivityThread.java:3800)
E/AndroidRuntime( 4319):        ... 10 more
D/dalvikvm-sfm( 4319): GC_CONCURRENT freed 145K, 46% free 3051K/5639K, external
0K/0K, paused 4ms+5ms
D/WidgetView_Card( 4197): message widget observer onChange, isDelete false
D/WidgetView_Card( 4197): MyChangeObserver onChange: not in foreground now. set
m_bNeedRefreshUI = true
D/ContactMessageStore( 4319): notify MmsSms
W/ActivityManager( 1934): Process com.android.phone has crashed too many times:
killing!
Check ur pm...and the framework u modified is of sense 3.5 so it won't work on 2.1....give the framework.jar to me by replacing the telephony folder from 2.1...may be it can solve the fc....pls....

Sent from my LG-P500 using XDA
 
  • Like
Reactions: 4SD

tudorsirb

Inactive Recognized Developer
Dec 10, 2010
603
1,385
93
Timisoara
That's why only with phone.apk from 3.5 worked ;)

EDIT: SMALING AGAIN WITH 2.1 framwork from samroxx

PM me with ur contact info so we can talk
 
Last edited:

sweetbinodray

Senior Member
Apr 18, 2009
1,475
2,992
0
kolkata
WiFi - you need have only some working
files from you ROM:
- system/bin/wpa_supplicant
- system/etc/wifi - wpa_supplicant.conf
- system/lib/wpa_client
Also you must know wifi port for you device
- eth0 or wlan0. Ports should be identical
so wpa_supplicant.conf
ctrl_interface= wlan0
so built.prop
wifi.interface= wlan0
wifi.softap.interface= wlan0
Sounds and mic also depend on firmware -
system/etc/firmware/default...1-3

Sent from my LG-P500 using Tapatalk 2 Beta-5
 
  • Like
Reactions: sam_0829

sam_0829

Senior Member
Mar 14, 2012
538
1,300
0
Ahmedabad
WiFi - you need have only some working
files from you ROM:
- system/bin/wpa_supplicant
- system/etc/wifi - wpa_supplicant.conf
- system/lib/wpa_client
Also you must know wifi port for you device
- eth0 or wlan0. Ports should be identical
so wpa_supplicant.conf
ctrl_interface= wlan0
so built.prop
wifi.interface= wlan0
wifi.softap.interface= wlan0
Sounds and mic also depend on firmware -
system/etc/firmware/default...1-3

Sent from my LG-P500 using Tapatalk 2 Beta-5
Will try by doing this....

Sent from my LG-P500 using XDA
 

Nightwolf117

Senior Member
Oct 11, 2011
4,613
109
0
24
Brisbane, Queensland
I love Sense, and will follow and contribute for it all the way! I just loved Sense as soon as I flashed it to this MT3GS!

My LG Optimus One is just sitting next to my bed charging, running the unofficial new update of iOSDroid M1 (I don't really like how it feels, nothing like iOS) so I will flash this and test it.

I'd really love to see this Sense port to finish out a fully working rom! :)

___________________________________________
Sent from my T-Mobile MyTouch 3G Slide running HTC Sense 3.5
 
  • Like
Reactions: sam_0829
Status
Not open for further replies.