Porting android apps to another android device. - Java for Android App Development

Hey guys, i need help porting apps from one android device to another like apps from LG Optimus 2x to LG optimus one or porting stock apps to cyanogenmod or porting xperia, samsung apps to non xperia(or non samsung) devices. I dont intend to make it for commercial use like posting on playstore. I just want it include on roms and make it such a way that other devs can include it on their roms. I have basic C++ knowledge and Im learning java on my own!

Normally you can just compile the app and add it to your work with the right copyright notice as long as your device/ROM is the minimum API level which is required.

How can i compile a app from source, which is already compiled like stock keyboard for xperia making it work on non xepria or LG optimus 2X Launcher for LG optimus one!
Edit: I'm new at this!
Sent from my LG-P690 using xda app-developers app

ayazm.140895 said:
How can i compile a app from source, which is already compiled like stock keyboard for xperia making it work on non xepria or LG optimus 2X Launcher for LG optimus one!
Edit: I'm new at this!
Sent from my LG-P690 using xda app-developers app
Click to expand...
Click to collapse
So have you got the sources? If you do, select File -> Import -> Existing Android code into workspace in Eclipse.
If you have already got a compiled app why don't you use that one?
If you mean resizing the images, rename the compiled apk to a .zip file. Then you can browse the content. Afterwards rename it to .apk.

nikwen said:
So have you got the sources? If you do, select File -> Import -> Existing Android code into workspace in Eclipse.
If you have already got a compiled app why don't you use that one?
If you mean resizing the images, rename the compiled apk to a .zip file. Then you can browse the content. Afterwards rename it to .apk.
Click to expand...
Click to collapse
I have got no sources. It's a stock application. I have to make it work on other device by resizing the images and make them work on other devices (may be low end device of same company or different company!)
Sent from my LG-P690 using xda app-developers app

ayazm.140895 said:
I have got no sources. It's a stock application. I have to make it work on other device by resizing the images and make them work on other devices (may be low end device of same company or different company!)
Sent from my LG-P690 using xda app-developers app
Click to expand...
Click to collapse
Ok. Try what I described:
If you mean resizing the images, rename the compiled apk to a .zip file. Then you can browse the content. Afterwards rename it to .apk.
Click to expand...
Click to collapse

I know I should modify the apk but what files like xperia has some file which checks the device for xperia device. What are the dimensions for mdpi device. What are the files should I modify in a keyboard to make it work on other device!
Sent from my LG-P690 using xda app-developers app

Related

Convert .py to .apk

Sorry if this information is available already.. BUT is there a way to convert a .py to a .apk from the android phone or from the computer I'm sure there is but I don't know how and yes...I've checked on google
Sent from my Nexus One using XDA App
How do you mean converting .py to .apk? An .apk file is just a zip compressed archive with a certain file structure containing the compiled sources and your raw resources.
I'm quite certain that there is no way to just convert a Python script to a functional Android application.
If you instead meant that you are looking for an interpreter which interprets Python for example then yes there is a library called Bean shell.
okay thank you I was looking for a way to convert it but I guess it's okay is there a way to treat it as a market app.. where if I gave them a link with a barcode image that they can download it like a regular apk and perhaps give the option to install sl4a.. And how do you increase text size of the interpreter?
Sent from my Nexus One using XDA App
I found out how to convert it... It's in the sl4a wiki pages and requires eclipse, quite a bit of steps but it's possible
Sent from my Nexus One using XDA App
Legend28469 said:
I found out how to convert it... It's in the sl4a wiki pages and requires eclipse, quite a bit of steps but it's possible
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Just wanted to add the link for the wiki as it's quite disorganized
https://code.google.com/p/android-scripting/wiki/SharingScripts#Scripts_as_APKs
so would this work with a project file made up using tkinter? ive got a script i want to build into an app but cant get kivy to work because of an issue with pygame and tkinter works fine

Stockwells porting script question.

As some of you know, stockwell has a miui porting script. I just began to wonder, can it be modified to port other roms from desire z? If someone could alter it a bit try to port one of desire z roms. I have very little knowledge on linux, but someone with more could do it.
Ret4rt and darksage have this script. They can answer to this question.
Sent from my Huawei Ideos X5
julle131 said:
As some of you know, stockwell has a miui porting script. I just began to wonder, can it be modified to port other roms from desire z? If someone could alter it a bit try to port one of desire z roms. I have very little knowledge on linux, but someone with more could do it.
Click to expand...
Click to collapse
U could try and just read the script from the github.. U could see the script will automatically add and replace some files and delete unnecessary file from Desire-Z ROM.. U can do it using windows AFAIK... Try using this tutorial
http://www.freeyourandroid.com/guide/porting-android to know exactly what to put to get the phone booting..
Do you have a link to the script?
PaulMilbank said:
Do you have a link to the script?
Click to expand...
Click to collapse
https://github.com/stockwell/MIUI-U8800-Port-Script/blob/master/miui_u8800_port.sh
For those who dont know Linux that well (Me too!), u need to figure out those function(rm=remove, cp=copy) and replace it manually in windows..
But updater-script could make it even harder.
Sent from my u8800 using XDA App
julle131 said:
But updater-script could make it even harder.
Sent from my u8800 using XDA App
Click to expand...
Click to collapse
Stockwell make it easy for us actually, if u check that github, there's an "overlay" folder.. Inside is all the file needed to add into the desire-z rom,
including the updater script (/ overlay / META-INF / com / google / android )..
izzoe said:
Stockwell make it easy for us actually, if u check that github, there's an "overlay" folder.. Inside is all the file needed to add into the desire-z rom,
including the updater script (/ overlay / META-INF / com / google / android )..
Click to expand...
Click to collapse
Okay. I need to install ubuntu to my pc then amd try.
Sent from my Desire HD using XDA App

Full Featured Developer Script for ROMs - Need ideas for a name

I am currently work on a program/script to manage ROMs, and I will be releasing it initially for the Kindle Fire for beta testing. This will be a full featured program with the following :
- Compile ROMs from source
- Extract & zip ROMs
- Decompile/Compile APK and JAR files in the ROM (selective or the whole ROM at once)
- Unpack / repack kernel
- ROMs and devices each will have their own config file to store information specific to each, such as comments and status
- Much more planned, such as the ability to browse and edit files, search and compare, etc
The big advantage to this, and what prompted me to write this in the first place, is the ability to have all of the necessary tools in one place and better keep track of your ROM projects. As I was working on modifying or porting ROMs, a big headache was having to go to so many places to do different things to a ROM, which leaves files scattered all over your hard drive.
This will help keep everything more organized and the goal is to cut out manually having to do so much when it comes to basic tasks, and eventually even the more advanced tasks involved.
The initial release will be for Linux, but a Windows version will follow (minus the Linux specific features such as compile from source).
I have made some great progress on this already, and am close to a beta release.
So, what I need help on is a name for this. Here is what I have so far as choices, I welcome suggestions. Those that reply with suggestions for a name will be the first to receive beta versions to try out
- DEVROID
- [ARM] Android Rom Master
That is all I have so far, so please throw some good options my way.
How about - Kindle Fire Rom Manager?
romifi_R_ed? or ROMIFI_r_ED? linked with youe nick
animefun135 said:
How about - Kindle Fire Rom Manager?
Click to expand...
Click to collapse
This was originally just for the KF but most of this stuff is generic enough to work on other devices, so I will be adding functionality for multiple devices. So the name shouldn't be specific to the KF. I'm just offering it for the KF first.
When it was going to be KF specific I had "Kindle Inferno" in mind....
Now that would be a good name for a ROM !
[ARDS] - Android Rom Developer Script (or Studio)
or
[ARDT] - Android Rom Developer Tool
or simply
[ARD] - Android Rom Developer (the shortcut is like a german television channel)
b63 said:
[TARDiS] - The Android Rom Developer Script (or Studio)
Click to expand...
Click to collapse
Fixed
Need to come up with something foe the "i"!
Sent from my SPH-D710 using xda premium
[CRT] Complete Rom Tool
Sent from my myTouch_4G_Slide using XDA App
I like the variation that @nykuil modified. Don't think you need to come up with anything for the I really. I know nearly nothing about Dr. Who, but love the name because it is recognizable.
Yeah the tardis is really a cool idea. who doesn't love Dr Who. ( at least the original )
Rockin' the Miui Incredible 2 w/xda premium
Thanks guys, keep 'em coming...
CWMR+KF
ClockWorkModRecovery+KindleFire? ?
Sent from my Kindle Fire using xda premium
Slrb script library for ROM
Slrp script library for ROM publishing
b63 said:
[TARDIS!] - Total Android Rom Development is Easy!
Click to expand...
Click to collapse
Maybe this?
Sent from my myTouch_4G_Slide using XDA App

[Q] Can I Install ICS .apk package on SGY?

Hello anyone have trick install ICS apk on Ginger Bread?
depends if it is compatible with ginerbread,
if its a system related apk,
then forget it
deathnotice01 said:
depends if it is compatible with ginerbread,
if its a system related apk,
then forget it
Click to expand...
Click to collapse
So, how to make it compitable with gingerbread?
When you try to install, you will know is that compatible or not.
Sent from my GT-S5360 using xda premium
blue.wave said:
When you try to install, you will know is that compatible or not.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
hahahaha, yeah i know, but i want to know how to make it compitable.
hihihi. if your answer, i must using ICS = LOL :laugh:
nael.lilik said:
hahahaha, yeah i know, but i want to know how to make it compitable.
hihihi. if your answer, i must using ICS = LOL :laugh:
Click to expand...
Click to collapse
decombile the apk and edit the manifest file set min sdk version no to 12 or 13 and recombile.thus ur request is fulfilled. but the app will crash with a null pointer exception if the layout used is only ment for ics and above.else it will work.
Sent from my GT-S5360 using xda app-developers app
jaison thomas said:
decombile the apk and edit the manifest file set min sdk version no to 12 or 13 and recombile.thus ur request is fulfilled. but the app will crash with a null pointer exception if the layout used is only ment for ics and above.else it will work.
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
that usually wont work trust me
some of app only need to recoded and rebuilded in an IDE. some of them never could work on GB based system since the API and the libs are too different.
deathnotice01 said:
that usually wont work trust me
Click to expand...
Click to collapse
ya i knew it wont work thts why i said it will crash with a null pointer exception.
but there are some occations as an app developer we use this trick expecially when working with admob or similiar things. admob sdk will now only support devices from honeycomb. so in that case we will build an app for ics with gb resources i mean layouts and integrate admob sdk.ones it get compiled and done we just change the min sdk version to gb and thts it.the app with ads works perfectly with undupported admob sdk.
but i am damn sure that best ics only apps wont work by this method.because they use more grid layout and one more sory i forgot its name. and hence we will get an force close as eclipse says null pointer exception , the resource not found in layout and so many crap error messages like that.
Sent from my GT-S5360 using xda app-developers app
jaison thomas said:
ya i knew it wont work thts why i said it will crash with a null pointer exception.
but there are some occations as an app developer we use this trick expecially when working with admob or similiar things. admob sdk will now only support devices from honeycomb. so in that case we will build an app for ics with gb resources i mean layouts and integrate admob sdk.ones it get compiled and done we just change the min sdk version to gb and thts it.the app with ads works perfectly with undupported admob sdk.
but i am damn sure that best ics only apps wont work by this method.because they use more grid layout and one more sory i forgot its name. and hence we will get an force close as eclipse says null pointer exception , the resource not found in layout and so many crap error messages like that.
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
so the answer is no other way to make ICS apk compitable with GB :laugh:
:highfive:
I never find a ics+ .apk package which is compatible with sgy. Even many CM7 apps (which is based on GB) is also incompatible with sgy.
An ICS app can NEVER be made compatible with Gingerbread. GB is API 10, and ICS is API 15. Each increasing API number contains some newly added functions, classes, enums, interfaces, etc. which are used in the src code. Hence, obviously, an app made with an API 'x' will never be compatible with an API of a no. below 'x'. Even if we make a simple app, like converting KG to Gm, using API level 15, we can't make it compatible with a lower API level by changing the manifest, because the SDKs are different.
||I'm just a PM away for help||

[TOOL] Starting a new tool

I'm a beginner in AndroidModding, and the ways that I have found so far are boring (as well as my ability to describe my project).
Basically, I'm developing a visual tool to facilitate mods creation. I know there are already some, but I intend to make a better base for beginners as I don't make crap.
I'll leave out some screen shots and when I make the program more stable I'll upload a first test version.
I wish everyone who has any idea about what I can add in the project manifest and suggest the same. At the end I will give credit to all who help me improve things.
And also, if you guys think this is will be useless please tell me this too
[Change log]
14/10/13
Working features:
-Create and manage Devices and ROMs
--Auto framework change 90% complete
-Create multiple projects of same APK
-Import an APK via dialog box to avoid mistake at folder arrange
-Decompile, Build, Auto META-INF PATCH, Recompile and ZipAlign just at one click for each function.
-Shortcut to working folders
-Debug output
-Set zipalign compression option
Features i'm working on:
-Auto change framework for different devices
-Auto mod scripting
-Translation features
-Pull/Push files via ADB
Features that I already tought about:
-Multi-Framework capability: Switch between frameworks to mod apps of different Roms and devices without complication.
-Project creation: Create a new independent mod with just one click without losing your previous project.
-Auto patch: Select a Mod in a list, choose your preferences and watch while program do the hard work for you.
-Create a auto patch youself: If you are already experient and want automate your mods, you can create a list of actions to auto apply into an apk.
-Create a Zip file to install in recovery mod
-Default stuff to ApkTool like decompile, build, recompile, blabla
[add 06/10/13 18:30]
-Adb pull/push: send or get files from your phone by adb connection
-Smali code autopatch support
ps: I don't know speak english as well, so, sorry about any mistake
This is good and seems fun
will wait for a test release
Will it be Open Source ?
Then we could improve your work by submitting patches
Pixelvernichter said:
Will it be Open Source ?
Then we could improve your work by submitting patches
Click to expand...
Click to collapse
Its a good idea, I'll think aboit it
Sent from my GT-I9100 using xda app-developers app
Also, if you need an tester for your tool I have time and i would do it
That tool will be great for a nope like me thanks
Sent from my GT-I9100 using xda app-developers app
shfddi being
:good:
i'll help to test if u want to..
Live log would be good. To watch as phone boots into an inevitable bootloop when trying something new. Saves running log separately and lets you view as it happens. With filtering would be good. Adbmagic did something similar but you cant copy or search the log.
Sent from my GT-I9305 using Tapatalk 4
Solved!Does anyone know if a xml like instead when inner value is empty interferes something or just make file bigger? I mean to Android, because I know their same thing.
Also, who wants help me making me an logo? I was thinking about an android with Merlin's costume, but I don't have the skills to reproduce this
Goldieking said:
Live log would be good. To watch as phone boots into an inevitable bootloop when trying something new. Saves running log separately and lets you view as it happens. With filtering would be good. Adbmagic did something similar but you cant copy or search the log.
Sent from my GT-I9305 using Tapatalk 4
Click to expand...
Click to collapse
That's a good idea, i'll try implement that, thanks
Sent from my GT-I9100 using xda app-developers app
SkyaTura said:
Does anyone know if a xml like instead when inner value is empty interferes something or just make file bigger? I mean to Android, because I know their same thing.
Also, who wants help me making me an logo? I was thinking about an android with Merlin's costume, but I don't have the skills to reproduce this
That's a good idea, i'll try implement that, thanks
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Bump !
Logo in progress
( Android with Merlin Costum. lol xD )
New changes at thread!!!
I pretend to release a beta version this week yet
Pixelvernichter said:
Bump !
Logo in progress
( Android with Merlin Costum. lol xD )
Click to expand...
Click to collapse
Can we see a preview of our MerlinDroid?
(i would be annoying if i ask an icon version?)

Categories

Resources