How Do I Port Apps To Other Phones? - Android Q&A, Help & Troubleshooting

Hey,
Well I have been more active on here lately and I am starting to want to contribute to the community
I have the S5 system and I wanted tot try (practice) porting the apps from that to the Note 2. I do know someone has done a few but I would like to give it a shot myself.

Spunkiest said:
Hey,
Well I have been more active on here lately and I am starting to want to contribute to the community
I have the S5 system and I wanted tot try (practice) porting the apps from that to the Note 2. I do know someone has done a few but I would like to give it a shot myself.
Click to expand...
Click to collapse
A lot of them require 4.4.2... But the basic concept behind porting apps is taking the apk you want..finding if it needs library files and maybe even some bin files as well..and then putting them in your system folder..if it FC's pull a log and see what else is needed
Sent from my SCH-I605 using xda app-developers app

lacoursiere18 said:
A lot of them require 4.4.2... But the basic concept behind porting apps is taking the apk you want..finding if it needs library files and maybe even some bin files as well..and then putting them in your system folder..if it FC's pull a log and see what else is needed
Sent from my SCH-I605 using xda app-developers app
Click to expand...
Click to collapse
I tried this with the S5 music app and it wouldn't even install, I am guessing there are more files for it then? Where would I put these files once I have found them?

Spunkiest said:
I tried this with the S5 music app and it wouldn't even install, I am guessing there are more files for it then? Where would I put these files once I have found them?
Click to expand...
Click to collapse
System/app.. You would have to delete your music apk or rename it .bak.. Not sure if they updated the libraries on that app but its possible.. Also changing the SDK version in the mainifest might solve some problems too
Sent from my SCH-I605 using xda app-developers app

Related

Hacking android games- on PC [Q]

Hello, basically I am wondering what is the best program to edit .DAT files ( the typ of file that is [mostly] used by android-game dev's to save stored data of the game )
and edit them,
also i was wondering what if I can't find the game/app map when connected to USB?
> I want to do it on the PC because I have the one X and are NOT going to root it.
Regards!
In order to access those files and write on them (edit them), you need root.
Sent from my DROID2 using xda premium
gagdude said:
In order to access those files and write on them (edit them), you need root.
Sent from my DROID2 using xda premium
Click to expand...
Click to collapse
Please read again, I can access them through my computer easily, in fact I have them open now on HxD editor, but I need a good program to edit these .DAT files with.
Then you need to push those files to the phone, which requires root
Sent from my DROID2 using xda premium
gagdude said:
Then you need to push those files to the phone, which requires root
Sent from my DROID2 using xda premium
Click to expand...
Click to collapse
Yes, okay but I still am just wondering what is the best program to open these .dat files with.
gagdude said:
Then you need to push those files to the phone, which requires root
Sent from my DROID2 using xda premium
Click to expand...
Click to collapse
Since when you need root to access a file created by application that doesn't require root?
nikiiv said:
Since when you need root to access a file created by application that doesn't require root?
Click to expand...
Click to collapse
He has no idea what he's talking about.
Sent from my E15i using xda premium
nikiiv said:
Since when you need root to access a file created by application that doesn't require root?
Click to expand...
Click to collapse
The file of an app, say a game is under \data\data and in order to change or replace those files, you need root.
NIMBAH said:
He has no idea what he's talking about.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
I know, right
Sent from my LG-C800 using xda premium
gagdude said:
The file of an app, say a game is under \data\data and in order to change or replace those files, you need root.
Click to expand...
Click to collapse
An app cannot write there under normal circumstances.. For writing there you need root, but games doesn' store their savegames there.
Let me put it differently.. if an app doesn't ask for root, all files it creates can be accessed by adb.
nikiiv said:
An app cannot write there under normal circumstances.. For writing there you need root, but games doesn' store their savegames there.
Let me put it differently.. if an app doesn't ask for root, all files it creates can be accessed by adb.
Click to expand...
Click to collapse
This is why non rooted phones cannot cheat on games, they cannot access the files there.
When you go into app settings and look under each app, there is a section that says data....x MB. And you can clear data. That data is stored under /data/data
Sent from my LG-C800 using xda premium
nikiiv said:
An app cannot write there under normal circumstances.. For writing there you need root, but games doesn' store their savegames there.
Click to expand...
Click to collapse
Check again. All user installed apps have folders there with some associated data. Some games don't have their savegames there, others do.
Theonew said:
Check again. All user installed apps have folders there with some associated data. Some games don't have their savegames there, others do.
Click to expand...
Click to collapse
Indeed, and the games I'm wondering about do have the save game in the folder, simply access-able when I connect my phone (One x) to the PC.
Any how, how could I open these files, with what program?
siemz said:
Indeed, and the games I'm wondering about do have the save game in the folder, simply access-able when I connect my phone (One x) to the PC.
Any how, how could I open these files, with what program?
Click to expand...
Click to collapse
The save games' files are usually XML files. You should be able to simply use notepad (or any other text/word associated software) to edit them.
Theonew said:
The save games' files are usually XML files. You should be able to simply use notepad (or any other text/word associated software) to edit them.
Click to expand...
Click to collapse
Sadly this is a .dat save file, any idea how to edit these?
siemz said:
Sadly this is a .dat save file, any idea how to edit these?
Click to expand...
Click to collapse
Hex editor, and messing around to see what each adress does. Every game dev uses their own liba and stuff, there is no universal program to edit those files.
Its like writting your own secret code inside a book, someone else might open it, but go figure out how to interpret each line.
In-app Android
Is it possible to hack games and get free in-app purchases such as on the iphone for android i've been looking but haven't found anything yet.
Geofbc said:
Is it possible to hack games and get free in-app purchases such as on the iphone for android i've been looking but haven't found anything yet.
Click to expand...
Click to collapse
It sure is. Hell, there even is a forum wide XDA announcement about it: http://forum.xda-developers.com/announcement.php?f=530
You might try enabling USB debugging... Found under developer options. This is in all Android devices enabling varies by release. Try checking out Setting - About Android - build version click that 7 times and it should enable it in main settings. It has already been said you really should root. This is usually the first step to getting root. I know nothing about HTC, but chainfire root has worked for me many times, from Sony, Moto and Samsung. Google your make and model + root +xda dev.
I myself have used Hex Editor, but it looks like garbage to me. Good luck and please give an update if you find a template or app
Interesting. I'm trying to hack my own game. Hope I can, because it obviously is possible...lol.
Hacking HTC devices is hard as hell, i have htc one and i can tell
The root needs clock work mode
And this CWM needs bootloader and the bootloader needs hellava time and experience
I just dont have time to do all that sh1t, isnt there an easier way to root stupid htc's, or at least to hack games on pc
Or hack the games without rooting
And dont tell me to use lucky patcher because its bullsh1t
Thx for reading

Adding apps to flashable files

So if I want to add apps like the note2 gallery to my port do I just put it in the app file zip it up and sign it?
Sent from my SGH-T959 using xda app-developers app
Hey skinzy98, real quick, just wanted to let you know that your work in the development sub-forum is greatly appreciated. Keep up the good work! :thumbup:
Now to answer your question. If you're planning to inject an app into a ROM, then you can accomplish this by placing the .apk into the system/app directory inside your ROMNAME.zip, and that's it (assuming the ROM sets recursive permissions to the entire system/app directory). This would result in your injected app being installed as a system app. However, if you want it to be installed as a data app... Well, it's gonna' be a little more involved. For what you plan to do, installing it as a system app would probably be best anyhow. Good luck, and let me know if you need any help/have any questions. Always glad to help a bro out when I can.
Sent from my SGH-T959
N00B_IN_N33D said:
Hey skinzy98, real quick, just wanted to let you know that your work in the development sub-forum is greatly appreciated. Keep up the good work! :thumbup:
Now to answer your question. If you're planning to inject an app into a ROM, then you can accomplish this by placing the .apk into the system/app directory inside your ROMNAME.zip, and that's it (assuming the ROM sets recursive permissions to the entire system/app directory). This would result in your injected app being installed as a system app. However, if you want it to be installed as a data app... Well, it's gonna' be a little more involved. For what you plan to do, installing it as a system app would probably be best anyhow. Good luck, and let me know if you need any help/have any questions. Always glad to help a bro out when I can.
Sent from my SGH-T959
Click to expand...
Click to collapse
Thanks man that's what I thought I just didn't want to put in the builds I made yesterday and it screw em all up so I figured I'd ask
Sent from my GT-I9000 using xda app-developers app
skinzy98 said:
So if I want to add apps like the note2 gallery to my port do I just put it in the app file zip it up and sign it?
Sent from my SGH-T959 using xda app-developers app
Click to expand...
Click to collapse
You are going about it the right way, but beware some apps from different sources may in other files or framework.
Just fyi if you run into unexpected issues.
Good luck
PAC_Vibrant 360° Productions
jrongi1 said:
You are going about it the right way, but beware some apps from different sources may in other files or framework.
Just fyi if you run into unexpected issues.
Good luck
PAC_Vibrant 360° Productions
Click to expand...
Click to collapse
Unfortunately happen my parents are against me doing ports and think it is a waste of time. I'll see what happens
Sent from my GT-I9000 using xda app-developers app

[Q] How to get stock apps on Vanilla RootBox

Does anyone know how to get stock apps on with this custom ROM? I'm primarily wanting Notebook. But quick memo, LG On screen phone and PC sync would be helpful also.
Thanks!
Sent from my Optimus G using xda premium
Tyler44346 said:
Does anyone know how to get stock apps on with this custom ROM? I'm primarily wanting Notebook. But quick memo, LG On screen phone and PC sync would be helpful also.
Thanks!
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
Not possible.
nygfan760 said:
Not possible.
Click to expand...
Click to collapse
Oh, just asking because I've seen the LG Notebook for the Samsung Galaxy S 3 (or two)
I seen something about having to hack it or something.
Sent from my Optimus G using xda premium
There are plenty of links for LG Notebook. But quick memo has some dependencies in the framework that aren't present in AOSP.
Sent from my RootBox LG-E970
Neroga said:
There are plenty of links for LG Notebook. But quick memo has some dependencies in the framework that aren't present in AOSP.
Sent from my RootBox LG-E970
Click to expand...
Click to collapse
I tried downloading several it just says "Application not installed." I seen a flashable .zip file for the SGS III that has the Noteboox app.. but im afraid to use it, because the update script, binary is for the SGS (not sure if that makes a difference). I've learned not to flash things from other phones. Is it safe for me to flash it?
Tyler44346 said:
I tried downloading several it just says "Application not installed." I seen a flashable .zip file for the SGS III that has the Noteboox app.. but im afraid to use it, because the update script, binary is for the SGS (not sure if that makes a difference). I've learned not to flash things from other phones. Is it safe for me to flash it?
Click to expand...
Click to collapse
If you have an apk that won't install you can try putting it in system apps setting permissions and rebooting.
adfurgerson said:
If you have an apk that won't install you can try putting it in system apps setting permissions and rebooting.
Click to expand...
Click to collapse
The permissions for it now is rw-rw-r--
should it be rwxrwxrwx? and/or any special permissions?
All of the other apps in /system/app are rw-r--r--, should it be that?
Tyler44346 said:
The permissions for it now is rw-rw-r--
should it be rwerwerwe?
All of the other apps in /system/app are rw-r--r--, should it be that?
Click to expand...
Click to collapse
I would try rw-r--r-- yes.
adfurgerson said:
I would try rw-r--r-- yes.
Click to expand...
Click to collapse
Didn't work, but thank you for your help!
Sent from my Optimus G using xda premium
The apps would need to be modified. The apps call for resources in the stock framework n systemui. You'll have to transfer those resources to the apps them self n change any internal link to the new location of the resources. It's been done but it's allot of work.
Sent from my Optimus G using Tapatalk 2
https://www.box.com/s/qfxao2m9rcctp2b03eom
MysteryEmotionz said:
The apps would need to be modified. The apps call for resources in the stock framework n systemui. You'll have to transfer those resources to the apps them self n change any internal link to the new location of the resources. It's been done but it's allot of work.
Sent from my Optimus G using Tapatalk 2
Click to expand...
Click to collapse
Thank you for explaining this. I used the method I described to pull DSP Manager from one ROM and put it in another one. But this is obviously more complicated.
Edit... Mystery gave me an idea and it seems to have worked, pulled apk from gnex zip and installed it.
After tinkering for awhile using a terminal emulator, somehow I have the LG Notebook app. I've noticed a few bugs but all are really really minor. I'm trying to figure out how I did this but it worked somehow.
Sent from my Optimus G using xda premium
Tyler44346 said:
After tinkering for awhile using a terminal emulator, somehow I have the LG Notebook app. I've noticed a few bugs but all are really really minor. I'm trying to figure out how I did this but it worked somehow.
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
I have found a way to to this, but it takes awhile for it to work. Will continue trying different ways, im trying to make LG apps work.
In the screenshot: PCSync, Notebook, and Quick Memo.
Tyler44346 said:
I have found anodded o to this, but it takes awhile for it to work. Will continue trying different ways, im trying to make LG apps work.
In the screenshot: PCSync, Notebook, and Quick Memo.
Click to expand...
Click to collapse
Did you see link I posted for Box, it is modded apk that might give some ideas if you can figure what was changed.
adfurgerson said:
Did you see link I posted for Box, it is modded apk that might give some ideas if you can figure what was changed.
Click to expand...
Click to collapse
I will download it and decompile it on my computer. I did get Quick Memo installed, but it force closes.
Sent from my Optimus G using xda premium
adfurgerson said:
Did you see link I posted for Box, it is modded apk that might give some ideas if you can figure what was changed.
Click to expand...
Click to collapse
The differences are the AndroidManifest.XML files and the working apk has a file called libpolatispdfexplorer.so (Notebook.apk/lib/armeabi/libpolarispdfexplorer.so) I think that might be something necessary for it to work.
Sent from my Optimus G using xda premium
Tyler44346 said:
The differences are the AndroidManifest.XML files and the working apk has a file called libpolatispdfexplorer.so (Notebook.apk/lib/armeabi/libpolarispdfexplorer.so) I think that might be something necessary for it to work.
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
I don't have a clue as to how code works......but keep me posted on any progress.
I have version of quick memo someone else posted here awhile ago (ie no credit to myself). It just launches like an app so it works well with a sidebar type app, other than the menu bar for it is captured in the screenshot.
Sent from my Nexus G LTE
C2fifield said:
I have version of quick memo someone else posted here awhile ago (ie no credit to myself). It just launches like an app so it works well with a sidebar type app, other than the menu bar for it is captured in the screenshot.
Sent from my Nexus G LTE
Click to expand...
Click to collapse
Can you upload it please?
Sent from my Optimus G using xda premium
Tyler44346 said:
Can you upload it please?
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
http://db.tt/AwZMMGxv
Hopefully it's not one of those private sharing links. Box and Dropbox have been a giant pain with that lately.
Sent from my Nexus G LTE

Idea for MultiWindow

Hi guys,
This just ocurred to me. I was reading that the korean jb has multiwindow and that its hardware is very similar to our notes. Both use a snapdragon S3 and the adreno 220. Can it be posible to port? I was just trying to port multiwindow into my own and I was able to make flashbar appear, get the toggle in settings. When you open the first app it opens like normal, now the second you see that it has the little box to divide the screen, but it opens the second app in full. But you'll see a bar in the middle that is the divider for multiwindow. I don't know something im missing or something. Will post pics later So you can see what im talking about.
I'm drooling with anticipation. ..I hope you figure it out!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
This is as far as I have. I have modified the following
SecSettings.apk to add the multiwindow option
android.policy.jar
services.jar (I saw multiwindow smali inside so I did not modify any of it)
Added:
FlashBarService.apk (Taken from the N7000)
multiwindow.jar
com.sec.android.app.multiwindow.xml
com.sec.feature.flashbar.xml
com.sec.feature.multiwindow.phone.xml
com.sec.feature.multiwindow.xml
I dont know if I'm missing other things to get it fully working. Im just learning.
do the 2 halves behave differently as if 2 instances of the same app is running?
triavq said:
do the 2 halves behave differently as if 2 instances of the same app is running?
Click to expand...
Click to collapse
No. It's like I opened the app in full, but I see the divider.
Maybe the apps themselves are tide into the multi window app. Have you installed the browser from the Korean note and tried it like that?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
lildoggs said:
Maybe the apps themselves are tide into the multi window app. Have you installed the browser from the Korean note and tried it like that?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
I haven't tried. Will try it when I get home in the evening.
Man this is gonna be awesome! Even if you don't succeed I'm just thankful that you're at least trying! Good luck and many thanks!
serge_harle_z said:
I haven't tried. Will try it when I get home in the evening.
Click to expand...
Click to collapse
I believe lildoggs may be somewhere in the general direction. I've been reading threads from the n7000 and note 2 threads about modding apps to be capable with multiwindow, if they aren't already supported. So if you can install the browser and maybe messenger app from the korean note, and they work that would be great. If not maybe try this tutorial from this thread to modify a few apps yourself and see if it works.
also check out this multi window manager app from the playstore if indeed you did get it working to maybe mod an app. I'm not dev, but just throwing out some things I think may be of some use to you.
I'm currently at work but will try them when I get home. Like I mentioned before from my research I see that we already have the smali files for multiwindow inside services.jar. Maybe we need the apps to be compatible.
Good luck man.
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Ok not sure if this will help you at all,but I foind this app https://play.google.com/store/apps/details?id=com.bjbinc.multiwindowmanager
Sent from my SAMSUNG-SGH-I717 using Tapatalk 4 Beta
Ok guys I have tried the Mms.apk and the browser from the N7000 rom with MultiWindow and there were a no go. They open like normal apps. Back to search if Im missing anything.
serge_harle_z said:
Ok guys I have tried the Mms.apk and the browser from the N7000 rom with MultiWindow and there were a no go. They open like normal apps. Back to search if Im missing anything.
Click to expand...
Click to collapse
Some guys over on the Note2 have found that there is a module for exposed called all apps it looks like that allows any app to be used with the multi window.
rquiett said:
Some guys over on the Note2 have found that there is a module for exposed called all apps it looks like that allows any app to be used with the multi window.
Click to expand...
Click to collapse
like this http://forum.xda-developers.com/showthread.php?t=2048668
rambo90 said:
like this http://forum.xda-developers.com/showthread.php?t=2048668
Click to expand...
Click to collapse
Tried the xposed method but still gets me the same results. Eventhough the modules allow to use any app in multiwindow. I must be missing something in the jar that Im not seeing. Will look into it tonight. Thanks to everyone for you help btw. Any idea is welcome.
dude
WOULD LOVE IF U COULD GET THIS WORKING......WAITING TO SEE WHAT HAPPENS....:good:
What about porting the whole rom? Is there any way to make it compatable with our note?
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Can't wait to see this progressed!
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
i've been trying myself. can't seem to make it work without the framework source. has it been released yet? nothing on sammobile for the i717.

Pushing AOSP apk's to system/app

I've been trying to push some AOSP style apps to system/app but I keep getting force closes on them.
Examples include calculator.apk and mms.ask. Any idea why these apps won't work?
Sent from my SCH-I545 using xda app-developers app
jco897j said:
I've been trying to push some AOSP style apps to system/app but I keep getting force closes on them.
Examples include calculator.apk and mms.ask. Any idea why these apps won't work?
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
The S4 is a TouchWiz phone, not AOSP. The AOSP framework isn't there, so many AOSP apps won't work. That's probably true for most of them, actually.
What you're doing is kind of close to taking an iPad application and trying to flash it, then asking why it doesn't work.
k1mu said:
The S4 is a TouchWiz phone, not AOSP. The AOSP framework isn't there, so many AOSP apps won't work. That's probably true for most of them, actually.
What you're doing is kind of close to taking an iPad application and trying to flash it, then asking why it doesn't work.
Click to expand...
Click to collapse
Also, Samsung apps are in system/priv-app, not system/app. Some may work, some may not. Generally fixing permissions and ensuring file name matches should help.
I tried that too. Oh well. Guess I'll just settle with freezing stock apps and installing AOSP versions the regular way. Thanks for the help.
Sent from my SCH-I545 using xda app-developers app
jco897j said:
I tried that too. Oh well. Guess I'll just settle with freezing stock apps and installing AOSP versions the regular way. Thanks for the help.
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
good luck...but like it was said, tw doesn't have ASOP framework as part of it
I've found a few apks that have been repackaged that I can simply install. Just trying to create the illusion of AOSP.
Sent from my SCH-I545 using xda app-developers app

Categories

Resources