Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Porting L Calculator to 4.1.2

OP crazynapkinman

25th November 2014, 06:18 AM   |  #1  
OP Senior Member
Thanks Meter: 3
 
139 posts
Join Date:Joined: Jun 2014
I am trying to port the Android L Calculator to 4.1.2

I have successfully decompiled, edited XML, and recompiled (without using my framework-res.apk in CMD prompt)Calculator_signed_zipaligned.apk

I have tried decompiling, editing XML, and recompiling using the framework-res.apk from my phone but i get an error: Click image for larger version

Name:	CMDError.jpg
Views:	174
Size:	112.2 KB
ID:	3032991

I am using these two tutorials to try to port this app: http://forum.xda-developers.com/show....php?t=2476050, http://forum.xda-developers.com/show....php?t=2195680

This is my first time trying to port anything, so forgive me if I'm way off track.

Here is my successful (?) compilation of the edited apk. [SEE ATTACHED FILE]
If a Dev could take a look (or someone more knowledgeable than myself) and perhaps give me a tip or two I'd appreciate it.
Trying to show my fellow JB users some love in getting us some newer apps. If I can backport this successfully I will gladly try backporting many other apps from Lollipop and other OS.

Thanks for any help I may receive!
Last edited by crazynapkinman; 25th November 2014 at 06:53 AM. Reason: Updated apk file with zipaligned version
25th November 2014, 06:19 AM   |  #2  
OP Senior Member
Thanks Meter: 3
 
139 posts
Join Date:Joined: Jun 2014
I've tried installing this signed apk but I get a parsing error...
29th November 2014, 12:27 AM   |  #3  
OP Senior Member
Thanks Meter: 3
 
139 posts
Join Date:Joined: Jun 2014
No one? Wow.... Please someone help me out here. I'm using the cyanogenmod calculator but I would like a smaller foot print on my device. I'm trying to do this myself with no prior experience so that maybe I can learn something. Is this a developer forum or what?

Sent from my Samsung Galaxy Rush with Tapatalk.
Devices: Nook Color, Dell XPS 18, Galaxy Rush (All modded)
3rd December 2014, 03:35 AM   |  #4  
Senior Member
Flag Waterloo
Thanks Meter: 232
 
313 posts
Join Date:Joined: Feb 2010
More
You won't be able to port the Android L calculator that way. It uses a lot of 5.0 only features and it was not written to be backwards compatible. That's the bad news.

The good news, I already ported it, though there are lots of bugs. Download Android Studio and my code (there's a Download ZIP in the bottom right). Then open Android Studio and "import" the unzipped folder. Build -> Generate Signed ZIP to create an apk.

I am the guy who writes the CM Calculator. So, I guess, warning in advanced. Some features have already been ported - it's not a stock build.
5th December 2014, 04:00 AM   |  #5  
OP Senior Member
Thanks Meter: 3
 
139 posts
Join Date:Joined: Jun 2014
Okay thanks for the heads up.

Sent from my Samsung Galaxy Rush with Tapatalk.
Devices: Nook Color, Dell XPS 18, Galaxy Rush (All modded)
Post Reply Subscribe to Thread

Tags
5.0 calculator, android l calculator, apk, app, backport
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes