Is it possible port a jb or ics app to gb? - Xperia Play Q&A, Help & Troubleshooting

With any kind of knowhow is it by ay chance possible to port a Ics+ app for gb.
Or perhaps I would need the source?
Ř800x

Wish to know too, Greenify on GB roms would be awesome!

Set "android:minSdkVersion="9"" (or 10 for 2.3.7) in your AndroidManifest.xml
inspect the code to make sure you're not calling any APIs that aren't available in gb. If you are, fix the code, either by disabling the relevant functionality or providing alternative implementations. You're also going to have to make some changes to the XML layout files. And probably a few more things.
As far as getting source code, google it, there are many methods, easiest probably dex2jar.
Sent from my R800i using xda app-developers app

You're welcome btw.
Sent from my R800i using xda app-developers app

Hmm very interesting I must give this a go thanks for the information
Ř800x

korrectmethod said:
Set "android:minSdkVersion="9"" (or 10 for 2.3.7) in your AndroidManifest.xml
inspect the code to make sure you're not calling any APIs that aren't available in gb. If you are, fix the code, either by disabling the relevant functionality or providing alternative implementations. You're also going to have to make some changes to the XML layout files. And probably a few more things.
As far as getting source code, google it, there are many methods, easiest probably dex2jar.
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Basically just that.
Edit: It's kind of in a wrong section...
Sent from my Nexus 5 using Tapatalk

Yea I noticed that late, I ment to post in Q&A
Sent from my SGH-T999 using xda app-developers app

Related

How to use porting tools?

I was wondering how to port to the incredible. I have windows 7, android sdk,apktool,smali/baksmali, and 7zip installed. I need to know how to use the tools mentioned and maybe some steps for porting. Modification of apk, jar, .xml, .so files are a must when porting,i just don't know how. Can someone please let me know, even if you want to pm then please do so. Thanks. Oh, afa what device I'd be porting from, not sure. Maybe from the desire or n1.
Bump
Sent from my ADR6300 using XDA App
google it my friend. GOOGLE!
type in android theme porter.
Thanks for the info, but I want to port a rom not a theme
ACD168 said:
google it my friend. GOOGLE!
type in android theme porter.
Click to expand...
Click to collapse
Sent from my ADR6300 using XDA App
I did try to google but nit anything on the incredible. I make it a general practice to google and research before I bother anyone on the forum.
Sent from my ADR6300 using XDA App
Maybe a Rom kitchen will help. I don't have much experience in this area.
It's no bother to people, I misread. rom kitchen sounds about right. you could always just try and theme the ROM you like..
Thanks for the response. What I really need is to know how to use the tools I mentioned. I have a basic overall knowledge of porting but am unsure of how to use the tools
Sent from my ADR6300 using XDA App
Bump
Sent from my ADR6300 using XDA App
I'm bumping this again cause I know there's got to be a dev with the knowledge, willingness, and time to tackle this thread request
Sent from my ADR6300 using XDA App
What are you wanting to port exactly?
Sent from my Incredible using XDA App

[Q]location of source code for apps?

I wanted to know where the source code is located for android apps? I want to include a few apps in my repo so a rom can be built with the desired apps. I've already decompiled the apps I want, but am wondering where the source code is stored. Thanks in advance for the answer
Wow, 57 views and no answers yet!
Sent from my ADR6300 using XDA App
Google android kernel. The site will be something like android.git.kernel.org that's the site. Good luck
Sent from my Incredible using Tapatalk
Ill look into it. Thanks
You cannot view the source code using only what's on your phone. You would have to contact the developer and ask them for it.
You can use ApkTool to extract the apk into smali format, this is not technically the source code as they are originally coded in Java.
Yea, I decompiled and converted into java. I don't know which part is the source code though. Here is the app I converted: http://www.mediafire.com/?j6ot2ne84r2q87a
Sent from my ADR6300 using XDA App
Here's the tool to view it: http://www.mediafire.com/?j6ot2ne84r2q87a
Sent from my ADR6300 using XDA App
I do not see the /src in there. Have to say you picked a hell of a apk to try. And I think you PM'd me a bit earlier in the week??
Treken said:
Yea, I decompiled and converted into java. I don't know which part is the source code though. Here is the app I converted: http://www.mediafire.com/?j6ot2ne84r2q87a
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
all of that is the source code...the java files at least...it's pretty much all of what you would have under src/...you would have to use apktool or something similar to get the xml files. Keep in mind that this is not open source code though.

Extracting icons from roms

I was curious if anyone could assist in helping me pull a 4g data icon from a ROM, I use different ROMs all the time, but find different aspects I like from others, I was curious how I could do that and input it into another ROM.
Thanks
Sent from my SGH-I747 using xda app-developers app
Anyone at all, there has to be some dev or someone out there that has some leading information at least, maybe that kitchen program can do this, just want a point in the right direction.
Sent from my SGH-I747 using xda app-developers app
Its not that simple. You have to decompile apks, make your edits then recompile. That's a super simplified overview
OK well I appreciate your response, from what I read on the kitchen forum it does talk about being able to compile your own customizations to preexisting ROMs or taking pieces of other ROMs and compiling your own version, probably requires a lot more practicing with said program.
Sent from my SGH-I747 using xda app-developers app

CM7 & stock cdma touchpad idea

Hi guys I have been reading in the forum lately that stock cdma 2.3.3 is basically aosp build? my question is can we then use cm7 which i think is more or less aosp build and the cdma 2.3.3 build to make a cm7 with working touchpads? or is the problem cm7 kernal??
ps2stuff said:
Hi guys I have been reading in the forum lately that stock cdma 2.3.3 is basically aosp build? my question is can we then use cm7 which i think is more or less aosp build and the cdma 2.3.3 build to make a cm7 with working touchpads? or is the problem cm7 kernal??
Click to expand...
Click to collapse
That's a good question I've been wondering that myself and here's a little something I found out while running a rom (2.3.3 Verizon with timescape) that from is from the UK firmware which has the .145 baseband which is also included into the cm7 builds I was looking at the build props of both roms and noticed the base and was the same, so my thoughts were rebasing a cm7 build on that 2.3.3 gingerbread .145 baseband would everything still work? Or would there be to many problems with cm7 sources and stock sources causing it not to load?
Sent from my R800x using xda premium
darkharbinger81 said:
That's a good question I've been wondering that myself and here's a little something I found out while running a rom (2.3.3 Verizon with timescape) that from is from the UK firmware which has the .145 baseband which is also included into the cm7 builds I was looking at the build props of both roms and noticed the base and was the same, so my thoughts were rebasing a cm7 build on that 2.3.3 gingerbread .145 baseband would everything still work? Or would there be to many problems with cm7 sources and stock sources causing it not to load?
Click to expand...
Click to collapse
isn't the baseband independent from the rom and just the firmware for the modem?
i thought the framework.jar is the problem or what i thought lately that the synaptics touchpad drivers aren't in the cm7 kernel.
konstruktor said:
isn't the baseband independent from the rom and just the firmware for the modem?
i thought the framework.jar is the problem or what i thought lately that the synaptics touchpad drivers aren't in the cm7 kernel.
Click to expand...
Click to collapse
Well here's the thing, sorry if I lose anybody here lol.
The touch pads and game pads do work but they don't work (if that makes sense) some games the game pad will work I.e off road legends sonic 1 but like gta series they don't register, I found an app that checks if the touch pads register it shows two yellow squares when you touch the middle "analog sticks" so they work and register but not on every game like sonic for instance the direction pad we can control him the x button makes him jump as well as pressing up on the left touch pad so they are there but not constant if you guys follow what I'm saying
Sent from my R800x using xda premium
darkharbinger81 said:
Well here's the thing, sorry if I lose anybody here lol.
The touch pads and game pads do work but they don't work (if that makes sense) some games the game pad will work I.e off road legends sonic 1 but like gta series they don't register, I found an app that checks if the touch pads register it shows two yellow squares when you touch the middle "analog sticks" so they work and register but not on every game like sonic for instance the direction pad we can control him the x button makes him jump as well as pressing up on the left touch pad so they are there but not constant if you guys follow what I'm saying
Sent from my R800x using xda premium
Click to expand...
Click to collapse
That's weird lol
Has someone tried with semc prop values? As for Rockstar Games games (lol) you need these values
Code:
ro.semc.product.model=R800i
ro.semc.product.name=Xperia PLAY
ro.semc.product.device=R800
ro.product.model=R800i
If still they don't get activated, it should be a framework issue, rather than a build.prop one
Sent from my R800i using xda app-developers app
CriGiu said:
That's weird lol
Has someone tried with semc prop values? As for Rockstar Games games (lol) you need these values
Code:
ro.semc.product.model=R800i
ro.semc.product.name=Xperia PLAY
ro.semc.product.device=R800
ro.product.model=R800i
If still they don't get activated, it should be a framework issue, rather than a build.prop one
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
I'm on miui Australia right now so I can't check but addiding mod.touch pad.startfrom1=1 doesn't do any thing lol neither does the touch pad activation app lol I didntthink about trying that
Sent from my R800x using xda premium
darkharbinger81 said:
I'm on miui Australia right now so I can't check but addiding mod.touch pad.startfrom1=1 doesn't do any thing lol neither does the touch pad activation app lol I didntthink about trying that
Sent from my R800x using xda premium
Click to expand...
Click to collapse
Lol that line (mod.touchmpad.startfrom1=1) is a custom property that will be ignored by the system unless you implement farenheith's code into the framework (that isn't compatible with pre-Ics frameworks unfortunately).
The only chances we have are those values (and fixing the others of course)
Sent from my R800i using xda app-developers app
CriGiu said:
Lol that line (mod.touchmpad.startfrom1=1) is a custom property that will be ignored by the system unless you implement farenheith's code into the framework (that isn't compatible with pre-Ics frameworks unfortunately).
The only chances we have are those values (and fixing the others of course)
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Lol like I said the touch pads / game pads are there we just need to find out how to make them constant I'm no dev but can try to help with this project
Sent from my R800x using xda premium
darkharbinger81 said:
Lol like I said the touch pads / game pads are there we just need to find out how to make them constant I'm no dev but can try to help with this project
Sent from my R800x using xda premium
Click to expand...
Click to collapse
I'd like to do something about that too :/
Farenheith didn't something for gb coz gb framework works in a different way than ics and +, and I don't have the skills (lol I'm 15 whom was never taught nothing about c/c++) so for now, I can't do anything :/
We need to find how the inputs work on gb (I mean in which smali and methods) and then make something like farenheith did, I think
Sent from my R800i using xda app-developers app
CriGiu said:
I'd like to do something about that too :/
Farenheith didn't something for gb coz gb framework works in a different way than ics and +, and I don't have the skills (lol I'm 15 whom was never taught nothing about c/c++) so for now, I can't do anything :/
We need to find how the inputs work on gb (I mean in which smali and methods) and then make something like farenheith did, I think
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
I can deco pile 2.3.4 gingerbread framework.jar in a couple of hours and see what I can find
Sent from my R800x using xda premium
darkharbinger81 said:
I can deco pile 2.3.4 gingerbread framework.jar in a couple of hours and see what I can find
Sent from my R800x using xda premium
Click to expand...
Click to collapse
I hope you can do something
The last time I tried I didn't find anything
Sent from my R800i using xda app-developers app
I'll start decompiling the framework.jar in a few I'll have to look into faraheiths thread to see where the vales get added to get an idea where to look lol
Sent from my R800x using xda premium
As I said before, farenheith's fix works only on 4.0+, because he changed some of the methods that (as I know) exist only on GB
so I don't think it'd be that simple (if it was, surely farenheith would have done so) :/
Sent from my R800i using xda app-developers app
CriGiu said:
As I said before, farenheith's fix works only on 4.0+, because he changed some of the methods that (as I know) exist only on GB
so I don't think it'd be that simple (if it was, surely farenheith would have done so) :/
Sent from my R800i using xda app-developers app
Click to expand...
Click to collapse
Lol right I'm wondering and thinking about some something, what about the keypad programming.apk that my 2.3.4 system dump has ibwondernif by adding that to the from it would help or even adding those files into the framework.jar
Sent from my R800x using xda premium
darkharbinger81 said:
Lol right I'm wondering and thinking about some something, what about the keypad programming.apk that my 2.3.4 system dump has ibwondernif by adding that to the from it would help or even adding those files into the framework.jar
Sent from my R800x using xda premium
Click to expand...
Click to collapse
I don't think it'll work :/
That's probably a one-time app (meaning that it starts at first boot) to map home button and such, and it's probably started by Verizon Setup Wizard, and if so we'll have to port it too
Sent from my R800i using xda app-developers app
I'm trying lol
Sent from my R800x using xda premium
maybe xdarkmario can help us
http://forum.xda-developers.com/showthread.php?t=1729250&page=5
look at this page and see what he did for getting touchpad support in his rom
pedyvirus said:
maybe xdarkmario can help us
http://forum.xda-developers.com/showthread.php?t=1729250&page=5
look at this page and see what he did for getting touchpad support in his rom
Click to expand...
Click to collapse
but this is an ics rom, not cm7
he used gb lines in ics for touchpad support
So, I'm bumping an old thread for a question I'm trying to port a rom from the Neo, its a 2.3.7 semc debranded rom well I'm using cm 7 and was bored so I installed minecraft and the gamepads and touchpads work flawless any ideas why some games I.e grand theft auto nothing works but like sonic and now minecraft everything works? Just wondering lol
Sent from my R800x using xda app-developers app

How to Change Commit to fix bluetooth on CM11

Hey,
I just flashed C-Rom, the Bluetooth doesn't appear to be working for any ROMs though. Apparently though, according to persius97, you can change 3 commits to get it working:
"Ok. Here is the CM Commit.
http://review.cyanogenmod.org/#/c/65280/
The 3 files it modified are BoardConfig.mk, bluetooth/vnd_d2.txt, proprietary-files.txt"
I dont understand how to change this though, and couldnt find anything on Google. If anyone could post a procedure or point me to a tutorial, that would be fantastic!
Thanks!
You would have to download the source code and build it yourself. Or request the Dev of the ROM to do it, if he will.
Sent from my SGH-T999 using XDA Premium 4 mobile app
Oh OK. Thanks!
Sent from my SGH-T999 using XDA Free mobile app

Categories

Resources