miui apps port - Android Q&A, Help & Troubleshooting

do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.
Sent from my HTC HD2 using xda premium

showlyshah said:
do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
The MIUI and CM7 specific apps use things from that framework.
If thry are not available in yours, it will simply not work.
Greets!

the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??
Sent from my HTC HD2 using xda premium

showlyshah said:
the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
Good one...
I guess that if you clone the MIUIv4 source that it will work...
Greets!

showlyshah said:
the worst thing is miui apk even dont run on android vm, where cm7 ones run. i use android 2.3.3 vm to check both, both apks are taken from 2.3.7 versions of custom roms. only cm7 based one runs the other refused to even install( i checked with many miui apks, same results).
then how miui apks are checked and debugged??
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
It is most likely the way that CM changes the base android code. As.it will use the Cm framework you will most likely have to rebuild the app using the cm files and frameworks.

showlyshah said:
do any one know why( exactly which code) makes the miui apps not to run on cm7?
i am in hard checking on how to port miui filemanager to cm7.
i decompiled the miui filemanager, and checked for any miui specific codes in the class files. i cant find anything like that. any one have any idea?
i think that the working of filemanager of miui is strictly dependent on miuis framework and my idea is to change those dependencies to cm7's.
if anybody have some ideas pls help me.
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
It mainly due to /system/framework/com.miui-framework-res.apk which has the framework files for miui apps to run. Also the framework files like android.policy.jar. framework.jar, services.jar are different and are built to support miui apps. You need to dig deep into the framework to see what files are responsible for a particular miui app and incorporate them into miui apk you want to install om CM7 rom.
Sent from my HTC Vision using Tapatalk

zelendel said:
It is most likely the way that CM changes the base android code. As.it will use the Cm framework you will most likely have to rebuild the app using the cm files and frameworks.
Click to expand...
Click to collapse
thats the thing i already know, and all i want is to know whats the diff in miui, or whats that code which contains in miui and not in cm7 framework. by knowing that, we can replace that code in miui apps and put correspondig cm7 one.
i know apps like miui cam,gallery, music is already ported to cm7. and may be the dev of that port can hint me.
Sent from my HTC HD2 using xda premium

ajhavery said:
It mainly due to /system/framework/com.miui-framework-res.apk which has the framework files for miui apps to run. Also the framework files like android.policy.jar. framework.jar, services.jar are different and are built to support miui apps. You need to dig deep into the framework to see what files are responsible for a particular miui app and incorporate them into miui apk you want to install om CM7 rom.
Sent from my HTC Vision using Tapatalk
Click to expand...
Click to collapse
i dont think i should dig that much into framework and supporting files of miui, cut those specific codes, put it into cm7 framework and screw up.
but i think to take a diff aproch, dig into apps, find those lines that require miui framework and files, revert it to cm7's framework and files.
and i think i can do it. but i req some help from u people.
can anybody give me the original and ported file of any miui apps like camera,gallery( the best option) or music.
i have all the three, and originals i copied from miui rom. but its not same versions.
so this is i want, same versions of ported and non ported ones. like , if original camera is 2.1.114, i need ported camera too in same 2.1.114 version.
any one have those?
Sent from my HTC HD2 using xda premium

Related

[q] miui lockscreens

Is there a way to get the MIUI lockscreens to work on our eris?
http://forum.xda-developers.com/showthread.php?t=1134657
If not......anybody know of a MIUI rom?
Haven't tried them. Closest thing I know of for muiu for Eris is itazz
Sent from my ADR6300 using Tapatalk
maybe a mui rom could do we have one yet
ok guys im on a mission! i pulled this from the latest Miui rom....the theme manager. The rom was for the HTC Desire Z. Somebody let me know which phone is most like/compatible with our eris from here: http://roms.miui.us/
I dont know y i choose that phone but i did. the theme manager doesnt want to install. should i get it from another rom for a different phone? And the theme chooser for cm7 is it conflicting with the Miui theme manager? What if i delete the cm7 theme chooser, anybody know if itll work or what?
I pulled a few apks from the rom and none will install is the framework the problem?
A lot is the issue .. the big one is its armv7 non of those phones are compatible
so I might b just wasting my time then?

[Q] porting sense3 to X10

Hi
I can port miui rom to my x10 but I tried to port sense3 from desire to x10 but no luck!
any ideas about porting sense????
a good start
http://forum.xda-developers.com/showthread.php?t=1222746
Amin` said:
Hi
I can port miui rom to my x10 but I tried to port sense3 from desire to x10 but no luck!
any ideas about porting sense????
Click to expand...
Click to collapse
It is not possible unless using a HTC phone as the HTC framework files are a must. Porting miui is easy as most of the work is done by CM before MIUI even gets it.
zelendel said:
It is not possible unless using a HTC phone as the HTC framework files are a must. Porting miui is easy as most of the work is done by CM before MIUI even gets it.
Click to expand...
Click to collapse
thanks a lot man!
so i will take the framework-res.apk and other apk releated to framework decomoile them add all the resource that HTC added to they framework , decompile the framework.jar and other framework files , and see what changes they have made to the original android one and rewrite that on JAVA and add on the android or cm7 sources , then compile , and for the libs we will need somme precompiled HTC libs that i will take from the already builded rom of HTC
Any other ideas?
Well HTC and other OEMs like Samsung don't change the main framework files but instead use their own resources apologize. Like HTC uses com.resources.apk that controles most things and the framework-res apk controls very little. You would have to use all the HTC resource files as well as most of all the system apks as well as the lib files.
Porting sense to a non HTC phone just isn't possable with our known tools.
So I see that it seems to be quite impossible but there are people who are trying and have even gotten it to boot. but not too far from there. I am hoping that something does come to the light so i can have sense on my epic. I know its a very tedious task but is there any guide that i can follow? please be ever so kind and post one if there is! Thanks!
Not impossible, just hard. Tweet rafyvitto and he will help. Galaxy s and nexus s have ports of sense.
Sent from my SPH-D700 using Tapatalk
yes It's not impossible...but it is imposible for me because I am a beginner and....
Jearplea(fxp) had ported a sense rom for x10 many time ago....(android 2.1)

[Help]Theme a custom ROM to look like 4.0

Hello developers!
1st of all thanks a lot for making ROMs too simple to customize them as per our requirements. I am after a problem. I am working on a custom ROM with prior permission of it's developer to make necessary changes to his work.
I am having the ICS.apk which turns default rom to ICS look through theme chooser. I am also having the ICS look ADW theme. What I actually want to know is, how to make these themes as default while making ROM. Means I don't want to make users take the efforts to choose them through themechooser. I looked many ROMs having ICS as default theme but not getting how they did that actually. I know that the default theme is everything like system.apk,etc. But still changing ICS through theme chooser makes everything look like ICS. So I need that procedure. Also same for ADW launcher or if ThouchWhiz is available.
I hope you guys got my point. Waiting to here from you!
Regards,
Adwait
As far as I know, the apk's in system/app/*.apk are one of the things that are replaced when making a custom ROM. I've a stock ROM but certain elements like the status bar and settings page are from custom ROM. Try doing that. There's also a guide on how to make a custom ROM somewhere around here. Use the search tool
Just decompile each apk and replace the png's.
Some apps like systemui and framework will also require some code editing to change the font color and other things.
TeamCooper Developer
TheMyth Developer
www.teamcooper.net
shaaan said:
Just decompile each apk and replace the png's.
Some apps like systemui and framework will also require some code editing to change the font color and other things.
TeamCooper Developer
TheMyth Developer
www.teamcooper.net
Click to expand...
Click to collapse
For example take this rom : http://forum.xda-developers.com/showthread.php?t=1510038
How to make it to look like the ROM as this?
Yes, the default system theme is built into the theme manager app located in system>app>theme manager open the apk using winrar and edit the pngs, this method will work on only.cyanogenmod 7 Rom.
Sent from my U8160 using xda premium
krishneelg3 said:
Yes, the default system theme is built into the theme manager app located in system>app>theme manager open the apk using winrar and edit the pngs, this method will work on only.cyanogenmod 7 Rom.
Sent from my U8160 using xda premium
Click to expand...
Click to collapse
Hahaha NO
Its not that its ALL apks of rom thats called prethemed
All apks have replaced pngshats systm theme
herpderp © aint got money to pay to my fish
A very noob question
Can I change build.prop to Android 4.0.3 and install launcher like Trebuchet?
Or is not that simple?
Sent from my GT-S5830 using Tapatalk
FilipeMoritz said:
A very noob question
Can I change build.prop to Android 4.0.3 and install launcher like Trebuchet?
Or is not that simple?
Sent from my GT-S5830 using Tapatalk
Click to expand...
Click to collapse
XD
TeamCooper Developer
TheMyth Developer
www.teamcooper.net
FilipeMoritz said:
A very noob question
Can I change build.prop to Android 4.0.3 and install launcher like Trebuchet?
Or is not that simple?
Sent from my GT-S5830 using Tapatalk
Click to expand...
Click to collapse
U can try =)))))))))
♬Sent from Motorola Rokr E8♬
Hello follow all the instructions here, very simple and clear thus thread will let you set a default cm7 theme
http://forum.xda-developers.com/showthread.php?t=1598707
Sent from my U8160 using xda premium
Edit build.prop and make it as a default replace the name of default theme correct me if i wrong
Sent from my iStone using Internet Explorer Pro
I like themes and like to make them, what is the best way of that.
why another ics look alike?
anyway which base rom u used

[Q] how to replace htc apps with google AOSP apps (calendar and contacts)

Hello, I am having some issues with the HTC apps for calendar and contacts and was thinking I could try installing the Google AOSP apps for the respective ones to see if things improve.
I was thinking to take them from the most recent CM10 build from Sept 18th.
When I look under system/app folder I see both the app (calender and contacts.apk), however for each there is also a file with ... provider.apk for each.
Do I need to copy both?
Do I need to "install" both and set persmissions for both?
If someone could walk me through specifically what to do and in what order that would be great.
Thanks very much for any assistance that can be provided.
windcan said:
Hello, I am having some issues with the HTC apps for calendar and contacts and was thinking I could try installing the Google AOSP apps for the respective ones to see if things improve.
I was thinking to take them from the most recent CM10 build from Sept 18th.
When I look under system/app folder I see both the app (calender and contacts.apk), however for each there is also a file with ... provider.apk for each.
Do I need to copy both?
Do I need to "install" both and set persmissions for both?
If someone could walk me through specifically what to do and in what order that would be great.
Thanks very much for any assistance that can be provided.
Click to expand...
Click to collapse
I would also be interested in knowing the answer to this.
Thanks
Visit goo.im. and search for goo.app & download the newest one for your particular ROM.
Sent from my HTC Ruby using xda app-developers app
thanks but how do I know which one will work with my phone and ROM?
Is it just based on the android OS version and not specific phone and ROM version?
For example I am on an ICS Energy ROM for an HTC Amaze.
Would I just take the CM 9 version (201204029)?
I presume I can flash it from my 4ext recovery?
Will it just install all GAPPS and leave my current calender and contacts app there as well?
Can or should I remove them or just leave them?
Thanks for your help and suggestion.
marathone said:
Visit goo.im. and search for goo.app & download the newest one for your particular ROM.
Sent from my HTC Ruby using xda app-developers app
Click to expand...
Click to collapse
Download the apps u want , make sure u have a nandroid backup extracthe apps u want to use. Use root explorer and copy the app over to system apps then paste & reboot. Note some aosp apps won't work with sense .
windcan said:
thanks but how do I know which one will work with my phone and ROM?
Is it just based on the android OS version and not specific phone and ROM version?
For example I am on an ICS Energy ROM for an HTC Amaze.
Would I just take the CM 9 version (201204029)?
I presume I can flash it from my 4ext recovery?
Will it just install all GAPPS and leave my current calender and contacts app there as well?
Can or should I remove them or just leave them?
Thanks for your help and suggestion.
Click to expand...
Click to collapse
Not sure how AOSP apps will work with a SENSE rom, only have xp installing on a CM rom. So, make backup in 4ext (of existing rom) just in case installing 'em screws things up.
Sent from my HTC_Amaze_4G using xda app-developers app

[Q] Need help or tutorial to modify cm10's framework for osb's dpi

Does anyone know how to decompile and recompile the framework for cm10 nightly build? I'm using Framework Toolkit by Themike *it simply cant recompile everything from original framework into new modded framework after editing the dimens.xml for osb's dpi (i assume, the modded framework (5MB+-) is significantly smaller than the original untouched framework (9MB+-), and the modded framework give bootloop). thanks
ICS apks are hard to decompile and and recompile. you got to search a lot to get a working apktool. the tool needed to for decompiling and recompiling.
moreover the apk is to be "signed". Just make sure you sign your apk.
you got to have a better understanding of xml for this. other than this i cant help. Good luck :good:
you can use mod to add OSB. it also provide modded settings.
Btw mate the system apps. Or files are not to be signed afaik and even if you sign it,you'll have to sign all system files with the same!
Isn't it?
Sent from my MT11i using xda premium
Ghostfreak NB said:
Btw mate the system apps. Or files are not to be signed afaik and even if you sign it,you'll have to sign all system files with the same!
Isn't it?
Sent from my MT11i using xda premium
Click to expand...
Click to collapse
Ghostfreak: yup, but i dun think CM team will sign all the apps they modify, are they? btw, nvm. I guess i better stick to ICS 1st, CM10 still kinda too buggy to be used on daily usages. JB source and resource for xperia are still too limited......
rajxelton: CM10 is based on JB 4.1.2, not 4.0.4 ICS (CM9) anymore of course the modding will be kinda different somehow, and CM10.1 is now 4.2.1 but under alpha release to test for development purpose. and ya, i do know those xml files under the values folder. i did made my own framework for my own use before.....

Categories

Resources