[PARANOIDANDROID JB/CS] Developers only: Porting, Support and Maintanance

KBizzle

Senior Member
Oct 30, 2008
4,200
4,409
0
Knoxville
Here is my port for the Epic 4G Touch: http://forum.xda-developers.com/showthread.php?t=1717546

My current hiccups are 4G - Biggest one.
About Phone Force closes
Custom Carrier Label doesnt change
Hard Key lights dont work.

Other than that it is running great. I also set up a directory for building from PA source. Got the settings errors on build. Tried building with CM settings instead, built fine but when setting DPI to tablet DPI, SystemUI crashed and also couldnt get Settings working fully. I have learned some things from this thread so far. Gonna try something new and see what I can do.

Thank you again for your hard work.
 

sgtkwol

Senior Member
Sep 2, 2010
417
284
0
Buffalo, NY
Here is my port for the Epic 4G Touch: http://forum.xda-developers.com/showthread.php?t=1717546

My current hiccups are 4G - Biggest one.
About Phone Force closes
Custom Carrier Label doesnt change
Hard Key lights dont work.

Other than that it is running great. I also set up a directory for building from PA source. Got the settings errors on build. Tried building with CM settings instead, built fine but when setting DPI to tablet DPI, SystemUI crashed and also couldnt get Settings working fully. I have learned some things from this thread so far. Gonna try something new and see what I can do.

Thank you again for your hard work.
Should be complaining on Epic thread. :) PA isn't open sourced, yet, so you won't have matching framework for this to work.

Oops Epic TOUCH 4g. I should be better than that. Sorry about that.
 
Last edited:

KBizzle

Senior Member
Oct 30, 2008
4,200
4,409
0
Knoxville
Should be complaining on Epic thread. :) PA isn't open sourced, yet, so you won't have matching framework for this to work.
I wasnt complaining actually. Just giving info on where I stood. I read every page of this thread and read where it isnt fully open source yet. Thanks for looking out.
 

sgtkwol

Senior Member
Sep 2, 2010
417
284
0
Buffalo, NY
Tip for porters. Check out your CM9 source code for the device you are porting, especially the "overlay" directory. That will show what is different for your device compared to general CM9 source. The ones that can't be changed with unzipping and unzipping are in the device overlay/frameworks/base/core/res/res/values. arrays.xml can be copied and pasted but config.xml will need to be searched and replaced line by line in the original xml (bool, integer, string, etc) in a decompiled framework-res.apk. This should get you ROM that is virtually like it was compiled for your device, if you already have a working ROM.
 
Last edited:
  • Like
Reactions: mateorod and bigfau

KBizzle

Senior Member
Oct 30, 2008
4,200
4,409
0
Knoxville
Tip for porters. Check out your CM9 source code for the device you are porting, especially the "overlay" directory. That will show what is different for your device compared to general CM9 source. The ones that can't be changed with unzipping and unzipping are in the device overlay/frameworks/base/core/res/res/values. arrays.xml can be copied and pasted but config.xml will need to be searched and replaced line by line in the original xml (bool, integer, string, etc) in a decompiled framework-res.apk. This should get you ROM that is virtually like it was compiled for your device, if you already have a working ROM.
Ok, I want to get this clear. Here are my steps. They have worked for previous releases but not recent.

-Start with CM9 base for my device
-Pull out Framework-res.apk
-Open rom with 7zip, delete /system/App, /system/Framework, /system/Fonts, /system/Media
-Open Rom from device with Source built PA
-Pull Framework-res.apk
-Decompile both framework-res.apks
-Used WinMerge to compare files, anything that was different in the CM9 from my device is replaced by the files from the PA framework-res.apk.
-Copy App, Framework, Fonts, Media from PA rom over to CM9 rom
-Replace framework-res.apk with newly compiled apk
-Copy over pad.prop
-Edit Build.prop to included ro.cm.version=PARANOIDANDROID

Now that usually works but now that the roms have been updated to 1.4b, it doesnt seem to work anymore.

Is there something I am missing?
 
Last edited:

sgtkwol

Senior Member
Sep 2, 2010
417
284
0
Buffalo, NY
Ok, I want to get this clear. Here are my steps. They have worked for previous releases but not recent.

-Used WinMerge to compare files, anything that was different in the CM9 from my device is replaced by the files from the PA framework-res.apk.

Now that usually works but now that the roms have been updated to 1.4b, it doesnt seem to work anymore.

Is there something I am missing?
Ooh, haven't worked with 1.4b, yet. I would assume similar operation would work. Instead of using WinMerge, I use the devices overlay/framework/res/res to make adjustments. Can copy everything except for the arrays with winzip. Then decompile and merge config.xml manually.

Just checked, don't use 1.4b, until it is compiled for the GS2.
 
Last edited:
  • Like
Reactions: KBizzle

KBizzle

Senior Member
Oct 30, 2008
4,200
4,409
0
Knoxville
Ooh, haven't worked with 1.4b, yet. I would assume similar operation would work. Instead of using WinMerge, I use the devices overlay/framework/res/res to make adjustments. Can copy everything except for the arrays with winzip. Then decompile and merge config.xml manually.

Just checked, don't use 1.4b, until it is compiled for the GS2.
When you say "devices overlay/framework/res/res", are you tallking about source folders or is that in a program?
 

sgtkwol

Senior Member
Sep 2, 2010
417
284
0
Buffalo, NY
When you say "devices overlay/framework/res/res", are you tallking about source folders or is that in a program?
Sorry, forgot yours wasn't CM9 official, yet. Overlay directory is here
https://github.com/darchstar/android_device_samsung_epic4gtouch/tree/ics/overlay

Make sure all apps you see in the packages/apps folder are imported from CM9 ROM. Not sure about the include directory, maybe someone here can offer some guidance. frameworks/base/core/res/res/xml files can be imported from cm9 rom by unzipping and rezipping. frameworks/base/core/res/res/values arrays.xml can be imported directly to a decompiled PA frameworks-res.apk. Now for the "fun" step, configure arrays.xml, bools.xml, colors.xml, and strings.xml manually according to the values in frameworks/base/core/res/res/values/config.xml. I'm getting around to it as soon as I can on my ROM, but overlay/frameworks/base/packages would be a similar set of steps.
 
Last edited:
  • Like
Reactions: KBizzle

-juanito-

Senior Member
Oct 22, 2010
2,168
134
0
i just tried this amazing ROM in my One X..i used tablet mode

my One X have three bttons .. Back - Home - Recent Apps

in this ROM .. Recent Apps changed to Menu button !! and if i want open recent apps should i enable on-screen buttons .. why should we have on-screen buttons and we have it already under screen ?

We want this
Back > Back
Home > Home
Recent Apps > Recent Apps
and if there any app need menu button..the three dots should be in the navigation bar

sorry for my english

Sent from my HTC One X using Tapatalk 2
 

KBizzle

Senior Member
Oct 30, 2008
4,200
4,409
0
Knoxville
Sorry, forgot yours wasn't CM9 official, yet. Overlay directory is here
https://github.com/darchstar/android_device_samsung_epic4gtouch/tree/ics/overlay

Make sure all apps you see in the packages/apps folder are imported from CM9 ROM. Not sure about the include directory, maybe someone here can offer some guidance. frameworks/base/core/res/res/xml files can be imported from cm9 rom by unzipping and rezipping. frameworks/base/core/res/res/values arrays.xml can be imported directly to a decompiled PA frameworks-res.apk. Now for the "fun" step, configure arrays.xml, bools.xml, colors.xml, and strings.xml manually according to the values in frameworks/base/core/res/res/values/config.xml. I'm getting around to it as soon as I can on my ROM, but overlay/frameworks/base/packages would be a similar set of steps.
Ok, just so I am sure I understand.

-Decompile PA rom Framework-res.apk
-Import xmls from frameworks/base/core/res/res/xml to decompiled PA apk
-Also import arrays.xml from frameworks/base/core/res/res/values to decompiled PA framework-res.apk
-Manually edit arrays.xml, bools.xml, colors.xml, and strings.xml with missing lines found in the config.xml

That sound correct?
 

molesarecoming

Inactive Recognized Developer
Feb 12, 2012
7,532
27,173
0
Berlin
i just tried this amazing ROM in my One X..i used tablet mode

my One X have three bttons .. Back - Home - Recent Apps

in this ROM .. Recent Apps changed to Menu button !! and if i want open recent apps should i enable on-screen buttons .. why should we have on-screen buttons and we have it already under screen ?

We want this
Back > Back
Home > Home
Recent Apps > Recent Apps
and if there any app need menu button..the three dots should be in the navigation bar

sorry for my english

Sent from my HTC One X using Tapatalk 2
sounds like somethings wrong. this must be an overlay problem that should be dealt with by your porter. i have tried PA on s2 and the buttons are mapped correctly.
i still dont get what kind of mess HTC created there. some apps do not have a navigation bar. whats your phone gonna do now with three fixed buttons?




for ICS ready devices (not hardware button-crippled) the actual configuration should be like this:


recents and menu button are one. if an obsolete app requests a menu, three dots will appear inside the recents button. longpressing it will make the menu pop up. this was necessary because the obsolete menu button steal at least 2 notification icons or prevents the user from making the navigationbar bigger. the png is not in xhdpi but in sw600dp. ic_sysbar_menu/ic_sysbar_recents or something.
 
Last edited:

sgtkwol

Senior Member
Sep 2, 2010
417
284
0
Buffalo, NY
Ok, just so I am sure I understand.

-Decompile PA rom Framework-res.apk
-Import xmls from frameworks/base/core/res/res/xml to decompiled PA apk
-Also import arrays.xml from frameworks/base/core/res/res/values to decompiled PA framework-res.apk
-Manually edit arrays.xml, bools.xml, colors.xml, and strings.xml with missing lines found in the config.xml

That sound correct?
Yeah, that should work. If not try "Import xmls from frameworks/base/core/res/res/xml to decompiled PA apk" step using zipping and unzipping using github source as a guide to what files need moved, instead.
 
Last edited:
  • Like
Reactions: KBizzle