"port" an apk from sense to nonsense - Android Software Development

Who would like to take on the difficult task of making this (attached) camera apk work with bulletproof MIUI?
Original post: http://forum.xda-developers.com/showthread.php?p=17062518#post17062518
sorry for 2x post but I think I posted in the wrong category first.

skinnyveganboy said:
Who would like to take on the difficult task of making this (attached) camera apk work with bulletproof MIUI?
Original post: http://forum.xda-developers.com/showthread.php?p=17062518#post17062518
sorry for 2x post but I think I posted in the wrong category first.
Click to expand...
Click to collapse
Sense apks need the drivers from HTC and will not work without them

It would probably be easier to build your own replica camera app than to port the sense one.

Related

Dependencies/Structure of Sense ui?

1) I want to know, what parts of sense are device specific?
2) Is a new kernel needed to port it?
3) What dependencies does rosie.apk have?
4) To anyone that has ported it, what was the general process?
On samsung i5700 btw
Thanks
i too would like more info. There has to be a better way than the way of just trial and error. for the windows mobile of Sense, a couple of devs developed a SDK to actually program sense based roms and not just hack
would be interesting to see something like this come to android
crowstar said:
1) I want to know, what parts of sense are device specific?
2) Is a new kernel needed to port it?
3) What dependencies does rosie.apk have?
4) To anyone that has ported it, what was the general process?
On samsung i5700 btw
Thanks
Click to expand...
Click to collapse
crowstar said:
1) I want to know, what parts of sense are device specific?
2) Is a new kernel needed to port it?
3) What dependencies does rosie.apk have?
4) To anyone that has ported it, what was the general process?
On samsung i5700 btw
Thanks
Click to expand...
Click to collapse
#1 You dont see SenseUI on non HTC devices because drivers just dont match up. Its difficult to port from one htc phone to another, imagine porting from HTC to Motorola (although it is being worked on)
#2 I have used non sense kernels for Sense ROMS and there are some overclock kernels that are universal for all ROMS (for a specific device). Im not sure about all kernels.
#3 WOW this is a big one. The list is too long to describe haha. The Sense UI runs deep down from the framework to system files and you wont be able to simply drag a few files over to a NON sense ROM and make it run. The reason you don't see sense widgets floating around on non sense ROMS is because they reference back to other system files and images in the framework. Ok so SOME sense apps like the keyboard can be ported over because all dependencies and files run within the application so thats ok. I know the widgets are a no go for the most part.
#4 Cant help you on that one. Never ported one completely but Ive modified already ported sense ROMS.
I don't know about Sence, but my Liquid has a lot of changes in system libs and frameworks. But from the visual side of things - it is stock Android. So Sense should be even more intrusive.
Nothing is impossible - just take dissassmbler, debugger and plenty of time to accompany you.

Stock Epic Dialer?

How do I use the stock epic dialer on Viper ROM? I don't really like the black theme and was just wondering if I could revert just the dialer?
Thanks
gokuman56 said:
How do I use the stock epic dialer on Viper ROM? I don't really like the black theme and was just wondering if I could revert just the dialer?
Thanks
Click to expand...
Click to collapse
Greetings all I'm brand new to the community..
I would love to see more themed dialers, in addition to the above requests. I did a good 30 minutes of searching through various posts as well.. Only to find two specific threads regarding dialers
By: idkwhothatis123 and jbadboy2007
One spoke of FC with some contacts button or something..
The other threads mentioning themed dialers led me to believe there would be more..
I'm either missing something. or I'm missing something??
Might any body point me in the right direction of were I could check out some themed dialers? Purtty please?
I'm running (this took me 2 days of getting my hands dirty!!!)
Epic: running Viper Trinity 3.03 and..... MY GPS works!!!!!!!!(20 hours and every version of firmware to get it that way.. )
But no I'm all warmed up and ready to go.. LOL..
Regarding a themed dialer.. I'm not just making a noob request.. I'm made the decision to start learning how to develop. Yay for me.. ( I have a programming bg and am excited to get started.. )
I'd love to replace the trinity dialer though in the mean time.. Jeeze Goat.. talk much?
Thanks all
I'm not sure which build that version of viper is on, but ideally, u could download any compatible theme. Then download the acs deodexed dk28 ROM. the dialer, alone is system/app/phone.apk.
What i would do is, open both theme and acs rom with 7zip (on computer), then drag the phone.apk into the theme folder.. then save, copy to sdcard, and flash normally.
Dialer
Thanks man for the quick reply..
I'm running SPH-D700-DK28-Extended-D
I believe that should suffice. Don't know what deoxed means yet. but I think my version is "deoxed"..?
So what I'm gathering is I can just grab any compatible theme copy it's phone.apk in to the the DK28 build that I'm using.. and re-flash?
That would mean I would then need to reflash the ROM right..
My understanding is that reflashing with a DK28 build will kill the custom ROM(viper)..
I'm having a sneaky suspicion that this should be in the devlopment section.. and now I'm thinking I need to do more homework.. Hmmmm
on another note.. I just d/l Viper Store from market.. they have some custom dialers for dl.. I'll try one of those..
However.. only one of them is available for d/l from my phone as the other 3 require one to use the multiupload link provided.. which strangely enough doesn't work on my(oranyone's?) Epic..
Ahhh so many little issues..
Thanks for you help

[MOD] New Sense battery with percents

Hi, I have made the New Sense battery PNGs with percents.
I know that there a lot similar out there, but I didn't like them for one reason or another...
It is already in the kitchen, added by mendozinas (thanks a lot for that), so you can just cook it for every ROM you want.
dmatik said:
Hi, I have made the New Sense battery PNGs with percents.
I know that there a lot similar out there, but I didn't like them for one reason or another...
The problem is that I don't know how to make a flashable ZIP for that MOD for the Stock Desire Sense ROM, would appreciate any help.
Thanks in advance.
Click to expand...
Click to collapse
I can make your flashable zip, but there is no such rom as Stock Desire Sense ROM.
even for stock there is few versions. lates is base 2.29. if thats what you want - just tell. and what kind on charging animation you want?
mendozinas said:
I can make your flashable zip, but there is no such rom as Stock Desire Sense ROM.
even for stock there is few versions. lates is base 2.29. if thats what you want - just tell.
Click to expand...
Click to collapse
I meant 2.29.405.5 version.
But it would be even better if you point me out where to learn to do it myself.
mendozinas said:
what kind on charging animation you want?
Click to expand...
Click to collapse
what do you mean what kind? I'm not sure I understand, the one I made...
dmatik said:
I meant 2.29.405.5 version.
But it would be even better if you point me out where to learn to do it myself.
what do you mean what kind? I'm not sure I understand, the one I made...
Click to expand...
Click to collapse
DIY:
1 Get ApkManager 4.8 (not 4.9)
2. decompile framework-res.apk
3. put images in drawable-hdpi-v4, xmls in drawables
4. compile
5. sign
6. upload signed framework-res.apk in UOT http://www.dakra.lt
7. Submit work (without using any mod)
8. Get flashable zip.
mendozinas said:
DIY:
3. put images in drawable-hdpi-v4, xmls in drawables
Click to expand...
Click to collapse
What about the fact that number of images is different, for example the number of stock battery images is 5 and mine (with percents) is 100?
Don't I have to configure it somewhere?
I added another version sample in the first post.
This is a bigger version of stock battery, to make the percents more visible.
mendozinas
Can you please make a flash-able ZIP out of the first version, including both percents and charging (I updated all the PNGs in the first post)?
I was unable to manage the different number of PNG files for the icon.
Sorry if this is a noob question, but is this zip flashable like any other?
And will it work on all Sense ROMs? I have Tabasco Silky v2.0.
Looks great. Thank you!
Nice. Good job
the small look verry nice
just what i was looking for
thank you
6chrisp said:
Sorry if this is a noob question, but is this zip flashable like any other?
And will it work on all Sense ROMs? I have Tabasco Silky v2.0.
Click to expand...
Click to collapse
Please can someone help me with this, I really want a percent on my battery!
Sent from my HTC Desire using XDA App
this is a nice mod, Thanks!
thanks. good animations.
Is there a way to make this work with SuperNova?
Thanks
Nice, thanks!
It is already in the kitchen, added by mendozinas (thanks a lot for that), so you can just cook it for every ROM you want.
thank you , nice
that s very nice
looks good thank you very much
Leedroid
Does this work with Leedroid Roms?

[GUIDE] How to port sense to non-HTC devices.

How to port Sense.
Source: http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/164989-guide-how-i-port.html (second post)
This is NOT my guide, just posting it here!
This is a very difficult process that I hope you'll understand.
First step is to find a device that is preferably VERY similar to your device, in this instance I guess we would use the htc thunderbolt, which I've been told multiple times that it is used for the MT.
You're going to want to use CM7 for parts. Simple enough.
I will be referring the Sense ROM to SENSE and CM7 as BASE to simple things up. So remember that.
When I say replace, I would recommend deleting from one and adding it with the other
Open up Sense and Base in different windows.
Put in the boot.img from Base into Sense (make sure you put the original boot.img in some other place that you'll remember)
go into /system/usr on both
replace keylayouts and keychars from Base into Sense (this is just your keys)
download dsixda's kitchen (http://forum.xda-developers.com/showthread.php?t=633246)
Get the ROM you have so far set up in it and what not (I'm a little fuzzy at this part)
Once you get done with that, run the menu in terminal and navigate your way to decompile the boot.img (action key- "a") and then run the same thing except run the action key "w" to decompile the original boot.img. So the key here is to decompile both boot.img's.
Go into the ramdisk on both and go into init.rc
THE MOST IMPORTANT PART IN THIS (THE MATTER OF BOOT AND BOOTLOOP) IS THE LINE
"export BOOTCLASSPATH" near the top. It will have a bunch of lines after it. Now in the Base's boot.img, delete this whole line. Replace it with the lines from Sense's boot.img.
Now you can add anything else you want that looks like it belongs (preferably anything sense related)
Don't recompile the boot.img yet.
Now we add a2sd. To do this, just follow this guide (https://www.facebook.com/note.php?note_id=158823170833688)
The only thing you do in there is the edits to the init.rc, don't listen to the decompiling/recompiling mentions. Now you can go back into the menu for the kitchen and recompile the boot.img (action key - "b"). Now don't compile the WHOLE ROM, just take the new boot.img in working_** and put it into the Sense zip.
Now you're going to want to download my ROM (sorry, just don't feel like uploading each individual file) http://gannon5197.blogspot.nl/2012/03/got-sense-booted.html
And go into the /system/bin on both
these are the files you're going to need: a2sd, bash, apps2sd.hlp, busybox.a2sd, chka2sd, jita2sd, launcha2sd, starta2sd, and maybe possibly sh (try once without it)
And you're going to want to set permissions for each one of these in the updater-script (look at mine for references)
Now also look at my zip and you'll see move_cache_sd. Put that in yours and set permissions for it in updater-script (use mine for references)
After that, the other stuff is mainly just getting rid of all the bloatware, (look in /system/app and /system/media) I wouldn't delete any libs as of right now. If you try to flash it and it reboots recovery then it is too big.
If it is too big, you're probably going to want to move a lot of the apps to data. To do this, just make a file called data/app/put_your_apps_here on the root of the zip. You're going to have to set permissions for it in the updater-script, but use the test.zip I sent you in the original.
This will most likely get you booted. Nothing will likely work. Which is expected. If you have any problems, just use logcat. It will be your bestfriend. Have fun porting
Click to expand...
Click to collapse
reserved
Thanks for reopening it bro...
Sent from my LG-P500 using Tapatalk 2
No problem :thumbup:
Don't know how this above awesome thread is so blank
Have u tested if this way works
Sent from my LG-P500 using Tapatalk 2
great guide, gonna try out soon
hmm this one's new for me. saved
should come in handy sometimes
someone has to do this for the Galaxy S2.
Will it also work for ICS ROMs?
I must do this. Anybody know where I can get the firmware for the One S?
Can i use a Gingerbread ROM as a base instead of cm7?
Hello for lg p500 there is 2 sense rom but data and mic not working in both rom can you help to solving that problems????btw great tutorial.
in fact sensse porting is differnet from the tutorial showed it is a little bit more difficult and there are some libs needed that there is only for the devices you are porting to. so a general tread will not really work
QuBe2 said:
in fact sensse porting is differnet from the tutorial showed it is a little bit more difficult and there are some libs needed that there is only for the devices you are porting to. so a general tread will not really work
Click to expand...
Click to collapse
Well this is not my tutorial just found it on the internet so I don't know if it works
Lord Inglip said:
Well this is not my tutorial just found it on the internet so I don't know if it works
Click to expand...
Click to collapse
why sharing things on the internet
QuBe2 said:
why sharing things on the internet
Click to expand...
Click to collapse
Because it's the internet. This guide was the only thing I could find.
Well you ported a htc sense One x rom to the Nexus S, so can you show us how you did it?
Lord Inglip said:
How to port Sense.
Source: http://forums.androidcentral.com/optimus-v-rooting-roms-hacks/164989-guide-how-i-port.html (second post)
This is NOT my guide, just posting it here!
Click to expand...
Click to collapse
Similar phone means the same chipset,processor and gpu??
a2441918 said:
Similar phone means the same chipset,processor and gpu??
Click to expand...
Click to collapse
Yes it's better if the phones have the same hardware
Lord Inglip said:
Yes it's better if the phones have the same hardware
Click to expand...
Click to collapse
I have an xperia x10.. will the nexus one and HTC desire be suitable??
My cm7 rom which i downloaded doesn't have a boot.img file.. So how to get it?? Is it the system.img got from a nandroid backup?? and the sense rom which the post refers to is the stock sense rom of the phone in a zip format or a modded one??
Not working..stuck at boot logo

[Q] Overscroll Bounce

Hello.
I've tried searching both via Google & XDA Search and haven't found it so I'm opening a thread.
I really liked the overscroll bounce in MIUI as it gives the phone a more natural feel.
Is it possible to port it for my AOKP based ROM?
Thanks in advance,
Niv.
lordgavers said:
Hello.
I've tried searching both via Google & XDA Search and haven't found it so I'm opening a thread.
I really liked the overscroll bounce in MIUI as it gives the phone a more natural feel.
Is it possible to port it for my AOKP based ROM?
Thanks in advance,
Niv.
Click to expand...
Click to collapse
I think you should have asked your AOKP ROM dev.to add this feature.
Or you can try different launchers having this feature.
This used to be in CM7 but now its been ditched
Sent from my Nexus 4 using Tapatalk 4 Beta
Rohit02 said:
I think you should have asked your AOKP ROM dev.to add this feature.
Or you can try different launchers having this feature.
Click to expand...
Click to collapse
I want this animation all over my device, not only the launcher.
Basically I want it instead of the overscroll glow.
Isn't there a flashable zip or a "do it yourself" tutorial?
Or if none exists, will anyone be willing to make one for me or at least direct me in the right direction?
bump
I think what you're talking about is a change to the actual ROM itself. In order to do that, you'd have to tear apart the ROM, over-write that part you want changed, then recompile the ROM. If you don't know how to do that (I know I don't), I'd ask your ROM developer if they could include it in a future build.
Sorry I'm not more helpful.
I think apple patented this feature in iOS, thus why it isn't on any other official os.
Sent from my Nexus 4 using xda app-developers app
Johmama said:
I think what you're talking about is a change to the actual ROM itself. In order to do that, you'd have to tear apart the ROM, over-write that part you want changed, then recompile the ROM. If you don't know how to do that (I know I don't), I'd ask your ROM developer if they could include it in a future build.
Sorry I'm not more helpful.
Click to expand...
Click to collapse
Yeah, kinda figured that one out, I just thought it can be made into a flashable zip or a simple "Replace X with Y" could be done since 99% of the ROMS use the same Overscroll Glow effect, but thx anyway.
You could try decompiling the framework-res.apk from an aosp ROM and miui ROM. Then copy the anim, anim-land, anim-sw720dp, and animator folders from miui to aosp. Recompile it and push it back into your ROM. It probably won't work but it's worth a shot.
Delete
chromium96 said:
You could try decompiling the framework-res.apk from an aosp ROM and miui ROM. Then copy the anim, anim-land, anim-sw720dp, and animator folders from miui to aosp. Recompile it and push it back into your ROM. It probably won't work but it's worth a shot.
Click to expand...
Click to collapse
I decompiled both "framework-res.apk" & "framework-miui-res.apk".
framework-miui-res didn't yield anything interesting, but framework-res.apk had the files:
anticipate_overshoot_interpolator.xml //Might be the "Overscroll"
bounce_interpolator.xml //Most likely to be the thing I'm looking for
overshoot_interpolator.xml //Might be the "Overscroll"
push_down_in.xml //Probably unrelated, but worth mentioning
push_down_in_no_alpha.xml //Probably unrelated, but worth mentioning
push_down_out.xml //Probably unrelated, but worth mentioning
push_down_out_no_alpha.xml //Probably unrelated, but worth mentioning
push_up_in.xml //Probably unrelated, but worth mentioning
push_up_out.xml //Probably unrelated, but worth mentioning
Problem is "bounce_interpolator.xml" only contains the following code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<bounceInterpolator />
Which I think means I need some additional files to make that function,
though I have no idea how to find them, or once I find them, use them (Just yesterday I learned how to work with APKTool).
Just in case someone is willing to take a look, idk how much help it is, but I'll include the framework-res & framework-miui-res decompiled folders.
http://www.mediafire.com/?o549yfz7cy46239

Categories

Resources