Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,247 Members 45,515 Now Online
XDA Developers Android and Mobile Development Forum

miui apps port

Tip us?
 
showlyshah
Old
#1  
showlyshah's Avatar
Senior Member - OP
Thanks Meter 536
Posts: 792
Join Date: Mar 2011
Location: kerala
Default miui apps port

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
N3410>N1100>N1110>SE K800I>SE W850I>SE W715I>SE W995I>SE C905I>SATIO> HTC WILDFIRE> HTC HD7>HTC HD2> XPERIA Z> XPERIA Z1

PLEASE READ THIS B4 U ASK QUESTIONShttp://forum.xda-developers.com/showpost.php?p=18289016&postcount=1
 
mDroidd
Old
#2  
mDroidd's Avatar
Recognized Contributor
Thanks Meter 1,382
Posts: 1,833
Join Date: Aug 2011

 
DONATE TO ME
Quote:
Originally Posted by showlyshah View Post
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
The MIUI and CM7 specific apps use things from that framework.
If thry are not available in yours, it will simply not work.

Greets!
 
showlyshah
Old
#3  
showlyshah's Avatar
Senior Member - OP
Thanks Meter 536
Posts: 792
Join Date: Mar 2011
Location: kerala
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
N3410>N1100>N1110>SE K800I>SE W850I>SE W715I>SE W995I>SE C905I>SATIO> HTC WILDFIRE> HTC HD7>HTC HD2> XPERIA Z> XPERIA Z1

PLEASE READ THIS B4 U ASK QUESTIONShttp://forum.xda-developers.com/showpost.php?p=18289016&postcount=1
 
mDroidd
Old
#4  
mDroidd's Avatar
Recognized Contributor
Thanks Meter 1,382
Posts: 1,833
Join Date: Aug 2011

 
DONATE TO ME
Quote:
Originally Posted by showlyshah View Post
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
Good one...
I guess that if you clone the MIUIv4 source that it will work...

Greets!
The Following User Says Thank You to mDroidd For This Useful Post: [ Click to Expand ]
 
zelendel
Old
#5  
zelendel's Avatar
Moderator Committee - The Dark Knight
Thanks Meter 11,126
Posts: 14,564
Join Date: Aug 2008
Location: Watching from the Shadows

 
DONATE TO ME
Quote:
Originally Posted by showlyshah
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
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.





If hard work pays off then easy work is worthless
SearchFu
Never Ask someone to do something your not willing to at least try to do yourself.
"Gotham is the work of a madman"- NunHugger Current Nexus 5-12 Nightly


The Following User Says Thank You to zelendel For This Useful Post: [ Click to Expand ]
 
ajhavery
Old
#6  
ajhavery's Avatar
Senior Member
Thanks Meter 1,006
Posts: 873
Join Date: May 2011
Location: Bangalore

 
DONATE TO ME
Quote:
Originally Posted by showlyshah View Post
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
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
If you appreciate my work and would like to support, use the "Donate To Me" Button under my Avatar or use the Donate button in my siganture, Thanks!


Hit the thanks button if I have helped.

My Website: www.progeeky.com

My Devices: Current : Galaxy S4 GT-I9500
Old: HTC Desire Z

My dropbox referral link : http://db.tt/G9WTD3LK
 
showlyshah
Old
#7  
showlyshah's Avatar
Senior Member - OP
Thanks Meter 536
Posts: 792
Join Date: Mar 2011
Location: kerala
Quote:
Originally Posted by zelendel View Post
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.
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
N3410>N1100>N1110>SE K800I>SE W850I>SE W715I>SE W995I>SE C905I>SATIO> HTC WILDFIRE> HTC HD7>HTC HD2> XPERIA Z> XPERIA Z1

PLEASE READ THIS B4 U ASK QUESTIONShttp://forum.xda-developers.com/showpost.php?p=18289016&postcount=1
 
showlyshah
Old
#8  
showlyshah's Avatar
Senior Member - OP
Thanks Meter 536
Posts: 792
Join Date: Mar 2011
Location: kerala
Quote:
Originally Posted by ajhavery View Post
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
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
N3410>N1100>N1110>SE K800I>SE W850I>SE W715I>SE W995I>SE C905I>SATIO> HTC WILDFIRE> HTC HD7>HTC HD2> XPERIA Z> XPERIA Z1

PLEASE READ THIS B4 U ASK QUESTIONShttp://forum.xda-developers.com/showpost.php?p=18289016&postcount=1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


MultiROM Makes Its Way to the LG G2

Over the last few weeks, we’ve seen quite a fewflagship (and former flagship) devicesget to … more

Jair Player with a Major Update–Here’s What’s New!

Back in May, we talked a bit aboutJair Player, a nice looking music … more

Paid Android App Developers Will Soon Have to Provide Physical Address

Google has now changed its policies regarding paid app developers. … more