[REQ] Script to sign an .apk (without computer) - HTC Amaze 4G

I am wondering if anyone can make a script or application to be used on Android to resign an apk. I am able to modify applications on my phone (minor changes like replacing icons,etc.), but still need to use computer to sign them. I would like to not have to use a computer for minor modifications.
Any thoughts on this would be appreciated (not sure if this will even work on Android)
Sent from my world to yours using an HTC Amaze

Angelus47 said:
I am wondering if anyone can make a script or application to resign an apk. I am able to modify applications on my phone (minor changes like replacing icons,etc.), but still need to use computer to sign them.
Any thoughts on this would be appreciated (not sure if this will even work on Android)
Sent from my world to yours using an HTC Amaze
Click to expand...
Click to collapse
It's a good technique that I've been using for the last three years.
http://forum.xda-developers.com/showthread.php?t=473580
Found it again by Google (hint).

Sorry, I should have been precise in what I was looking for. I'm looking for a way to sign an .apk using my phone only (no computer). I may have missed it in my search. All I found was for Windows/Linux.
Sent from my world to yours using an HTC Amaze

Zipsigner2 on the market.
Sent - HTC Sensation Coredroid

Thanx, not sure how I missed that in the market. Much appreciated.
Sent from my world to yours using an HTC Amaze

Related

Custom boot animation

Hey guys,
I'm so sorry if this is a topic which has been resolved before but I am kinda new at all this (this is my first post) , I was on YouTube and came across some videos of how to apply custom boot animation on an HTC desire WITHOUT ROOT.
I didn't fully understand the procedure and was wondering if this is possible on an un-rooted wildfire as well. And if yes, then how?
I am currently running the official android 2.2.1 update, obviously without ROOT.
Thanks in advance
Sent from my HTC Wildfire using XDA App
Right, I would also love to know.
After searching about on Astro I found the picture files for the boot animation. There was also a very short script. I worked out which bit told the device the screen resolution and fps but the rest was gobbledy gook
Sent from my HTC Wildfire using XDA App
Sorry accidently pressed send too soon...
....to me. The filepath to the folder was:
\system\customize\resource\bootanimation.zip
Can't access it? Try downloading Astro file manager from the Market.
Sent from my HTC Wildfire using XDA App
Alright, i have access to the folder, now what?
Sent from my HTC Wildfire using XDA App
do u have write permission on that folder???
If so, then you have to replace the bootanimation.zip with the bootanimation u want..
You can find the custom bootanimation in the same forum..
So basically, I access the folder with boot animation, and replace it with the custom boot animation i want right? This is all through the computer right?
I'm so sorry if I'm asking obvious stuff but I'm new at all this
Sent from my HTC Wildfire using XDA App
yeah thats right... have you rooted the phone???
You cannot modify the system folder without root. I wasn't even aware that it was possible to change bootanimation without root. Ill check that video out and try to help you.
Sent from my HTC Wildfire using XDA App
Alright. The video showed a Droid incredible and the person used a Mac and entered some code into the terminal, that is basically command prompt on windows.
So yeah check it out and see if you understand it.
Thanks in advance
Sent from my HTC Wildfire using XDA App
You need root access to change the system zip I showed earlier. Put the animation in separate folders in the zip folder eg:
HTC
TMOB
I recommend you use a simple name for the folder.
Then you need to rename the image files to:
Foldername_240x320_15fps_0001
Foldername_240x320_15fps_0002
Foldername_240x320_15fps_0003
Etc...
This isn't essential but is good practice. You must include the 0001 at the end though so the animation images are in the right order.
REMEMBER THOSE SPECS ARE FOR HTC BUZZ WILDFIRE.
Now you need to edit the desc.txt script.
***FROM HERE ON I AM NOT 100% SURE AND DO NOT ACCEPT RESPONSIBILITY FOR ANY DAMAGE TO YOUR DEVICE***
desc.txt:
240 320 15
p
p
Now I figured what the top line is; resolution and fps. But the lines with p on confuse me. They have some numbers after and the the folder name.
Will update later when I find out.
Hope this helps.
th3ant
Please thank if you found this helpful.
Sent from my HTC Wildfire using XDA App
[[UPDATE:]]
Right guys, I think I found out somit...
First I need to correct a mistake from earlier, when I said to rename the pic files, it seems you need to start from 0000 not 0001:
Foldername_240x320_15fps_0000
Foldername_240x320_15fps_0001
Foldername_240x320_15fps_0002
Next, I'd like to say what I found out about the desc.txt file.
Mine looks like this...
240 320 15
p 1 45 android
p 1 1 TMI
I explained the first line earlier. Now look where it says "p 1 45 android".
The p is absolutely necessary, I don't know what it stands for, maybe play?
The "1 45" were the question. I think they tell the phone how many frames there are. But the thing that confused me is that the android folder has 1 file and the TMO folder has 45. But the script says the opposite. Can you make any sense of this?
And last but not least, the "android" at the end of the line is the name of the folders holding the different animations.
Did that make sense?
Alright, thanks man
Will try it out in a few days, got exams
Sent from my HTC Wildfire using XDA App
Good luck with those. I think I'm on to something with the script... will update previous post shortly.
Sent from my HTC Wildfire using XDA App
I won't be posting updates until i have made a full set of instructions
gearhead10 said:
Alright, thanks man
Will try it out in a few days, got exams
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
Oh, how are you going to try it out when you are running 2.2.1 and don't have root access? I did mention you need root access to modify bootanimation.zip as it is a system folder
I know its annoying.... i'm just starting to get the full grips of all this rooting malarky a couple of months ago and guess what I did before I knew about not being able to root Android 2.2.1.... yes I updated
So now I cant test any of my new ROM's, Hacks and Tweaks until unrEVOked get a move on
I will try and make a website with help on in the future as I am now making quite a few tweaks and people need to know this stuff! Will post full instructions for bootanimation tweak in the coming future....
Good Luck to anyone who does try anything!
th3ant
Yeah, even I didnt know that the official 2.2.1 for wildfire for not rootable I got an alert for the official update and installed immediately without any research.
So yeah im stuck too
Anyways thanks for the reply
Sent from my HTC Wildfire using XDA App

[Q]How to change the sense version number in the about screen

Which apk, or lib, or whatever is this found in (Changed the sense version from 2.1.. to 3.0.. in rosie.apk and didnt fix the issue)? Its bugging the crap out of me as im working on my own pyramid/kingdom mashup rom for the desire hd/inspire 4g.
This is one of the items on my list of things I still need to address, and i'd rather not waste time on such a mundane thing as its apparently already been fixed in both the rcmix port and the new unity port.
I just need someone to steer me in the right direction.
As far as finding it in the code... i'll do that myself.
It is not found in a apk or lib file, but rather in an xml file. Let me search which.
Edit: After looking through xml files in the Sense 2.1 ROM I'm running I couldn't find it. I'll try again tomorrow once I got my Linux box on and I get some sleep.
Sent from my Hero that never dies! ;D
dastin1015 said:
It is not found in a apk or lib file, but rather in an xml file. Let me search which.
Edit: After looking through xml files in the Sense 2.1 ROM I'm running I couldn't find it. I'll try again tomorrow once I got my Linux box on and I get some sleep.
Sent from my Hero that never dies! ;D
Click to expand...
Click to collapse
Thanks mate, I havent found it in any of the xml's that are just lying about in the builds, I havent started using the kitchen yet myself (just setting it up now on ubuntu 11.04), so far its all been using apk manager, and just parsing code, and familiarizing myself with nitty gritty, parsing and editing code. I've already gotten a few gray hairs from frustration. lol
Have a look in strings.xml in Settings.apk
I don't have the phone or a ROM as a reference on me, but you should be able to work out how to set it by starting from strings.xml in Settings and working backwards, if you know what I mean.
If not, upload the file (Settings.apk) for me and I'll have a look for you.
will check it out, thnx
Its a build.prop edit look in system/build.prop
Sent from my HTC Vision using XDA Premium App
I can't seem to locate the file mentioned above. Do I need to use a specific program in order to view/edit the file.
Sent from my Synergized 3.0 EVO using Tapatalk
Blowpot said:
I can't seem to locate the file mentioned above. Do I need to use a specific program in order to view/edit the file.
Sent from my Synergized 3.0 EVO using Tapatalk
Click to expand...
Click to collapse
Prop editor
Sent from my Inspire 4G using XDA Premium App

[Q] Possible way to Root phone via app?

I was over looking the z4root app made a while ago. The app used "rageagainstthecage" to root devices. Now, thats pretty old. So maybe for all the newer devices we can simply replace the "rageagainstthecage" file with something like "ZergRush" and edit the apk's XML files to fit its needs. Would we be able to root devices up to 2.3.5 using this?
Link to z4root: http://forum.xda-developers.com/showthread.php?t=833953
TheGioDoodlesII said:
It is possible, but to do it the traditional way is easier!!! And better!:beer:
Sent from my GT-S5660 using xda premium
Click to expand...
Click to collapse
It may be easier for the designer, but wouldnt downloading an app and hitting a button on it be easier than connecting your device to your comp, downloading SuperOneClick, and running it?
I think it would be about the same, just consumes less time.
Also, thanks for giving me somewhat of help.(telling me it can work)

[Q] Stock ICS Keyboard on Sense 3.6?

Is it possible to install the AOSP ICS keyboard apk pulled from an AOSP rom and install it onto stock Sense 3.6 and have it fully functioning?
I have my old MyTouch 4G on an AOKP rom and I pulled LatinIME.apk from it. Now I'm just wondering whether this keyboard would function properly on my unrooted stock Amaze.
EDIT: Would I also need LatinIMEDictionaryPack.apk as well?
You can just answer that yourself, try it, if it doesn't work, then voila, question answered, right?
Dark Nightmare said:
You can just answer that yourself, try it, if it doesn't work, then voila, question answered, right?
Click to expand...
Click to collapse
I get an error when opening the .apk. "There is a problem parsing the package." I've gotten this kind of error many times for different apps without understanding what it actually means.
Could someone explain to me what this error means in the context of Android apps?
EDIT: Would it also be possible to try and push the app through ADB?
MidnightXZ said:
I get an error when opening the .apk. "There is a problem parsing the package." I've gotten this kind of error many times for different apps without understanding what it actually means.
Could someone explain to me what this error means in the context of Android apps?
EDIT: Would it also be possible to try and push the app through ADB?
Click to expand...
Click to collapse
That's probably because the android version is different, try pulling it from an ICS based rom, for like the sensation since that is similar to your device and give it a shot again before try to push it to the system.
Dark Nightmare said:
That's probably because the android version is different, try pulling it from an ICS based rom, for like the sensation since that is similar to your device and give it a shot again before try to push it to the system.
Click to expand...
Click to collapse
What do you mean the Android version is different? I'm pulling it from an AOKP rom which is ICS based, however it may possibly be the different resolution on the 2 devices. WVGA (MyTouch 4G) vs qHD (Amaze)
I guess I'll just download CM9 for the Sensation and try again.
EDIT: LatinIME.apk from CM9 for the Sensation works like a charm!
I like the stock ICS keyboard as well, compared to sense. You can also download a ICS keyboard straight from the Play store and use it right away.
I am Chinese using Motorola thus I got thousands of chances to play with different roms modified based on the stock. Many would change the ime, but some prefer the original.
I did notice when installing a stock ime update pack from Moto, that not only the Latin.apk is changed, but some other modification will be made in the system layer as well.
I believe it is like the stock browser or Google talk app, that a single file would not work functionally without the other parts related.
Sent from my XT910 using xda app-developers app
Now that I know that the AOSP keyboard works on Sense 3.6 flawlessly, I want to go about putting a full fledged AOSP application onto my Amaze. I want to try putting the AOSP messaging app on, but I do not think it will be as easy as a simple keyboard.
The stock messaging app on the Amaze and the AOSP messaging app on CM9 for the Sensation have the same filename. I'm not sure if I'm right here, but would this indicate that they can't be run side by side with each other?
Sent from my HTC Amaze 4G using Tapatalk 2
Please share if you are able to install the ICS keyboard, i'd like to try it.
MidnightXZ said:
Now that I know that the AOSP keyboard works on Sense 3.6 flawlessly, I want to go about putting a full fledged AOSP application onto my Amaze. I want to try putting the AOSP messaging app on, but I do not think it will be as easy as a simple keyboard.
The stock messaging app on the Amaze and the AOSP messaging app on CM9 for the Sensation have the same filename. I'm not sure if I'm right here, but would this indicate that they can't be run side by side with each other?
Sent from my HTC Amaze 4G using Tapatalk 2
Click to expand...
Click to collapse
As I said before, give it a shot, make a backup of your current app by copying it to your sd card or something, then replace it withe AOSP version, since I've noticed that files with the same name usually can't be installed together, even if you rename the other file, but you can give that a shot as well.
xdame said:
Please share if you are able to install the ICS keyboard, i'd like to try it.
Click to expand...
Click to collapse
Read a few post up, he confirms it works.
Dark Nightmare said:
As I said before, give it a shot, make a backup of your current app by copying it to your sd card or something, then replace it withe AOSP version, since I've noticed that files with the same name usually can't be installed together, even if you rename the other file, but you can give that a shot as well.
Read a few post up, he confirms it works.
Click to expand...
Click to collapse
The thing about the current app is that it is the stock messaging app which is located under /system which I do not have access to modify as I am not rooted. If I install the AOSP version, it would be installed under /data. I am not sure how they would them interact, assuming that they can be installed side by side.
Sent from my HTC Amaze 4G using Tapatalk 2
MidnightXZ said:
The thing about the current app is that it is the stock messaging app which is located under /system which I do not have access to modify as I am not rooted. If I install the AOSP version, it would be installed under /data. I am not sure how they would them interact, assuming that they can be installed side by side.
Sent from my HTC Amaze 4G using Tapatalk 2
Click to expand...
Click to collapse
Well it wouldn't hurt to try.
Dark Nightmare said:
Well it wouldn't hurt to try.
Click to expand...
Click to collapse
Hopefully not. I'll get around to doing this later today and report back after I pull the apk from CM9 for the Sensation.
Sent from my HTC Amaze 4G using Tapatalk 2
MidnightXZ said:
Hopefully not. I'll get around to doing this later today and report back after I pull the apk from CM9 for the Sensation.
Sent from my HTC Amaze 4G using Tapatalk 2
Click to expand...
Click to collapse
You're not rooted, therefore your chance of screwing anything up is practically zero.
Sent from a Galaxy Nexus?
Dark Nightmare said:
You're not rooted, therefore your chance of screwing anything up is practically zero.
Sent from a Galaxy Nexus?
Click to expand...
Click to collapse
'Application not installed'
'An existing package by the same name with a conflicting signature is already installed'
Guess I can't just install it and hope it would work. Any other means to getting this to work or am I just unable to install it?
MidnightXZ said:
'Application not installed'
'An existing package by the same name with a conflicting signature is already installed'
Guess I can't just install it and hope it would work. Any other means to getting this to work or am I just unable to install it?
Click to expand...
Click to collapse
From the message it gave you, the only way to get it to work is by replacing the current stock file with that file, but you have to root to do that, .
Dark Nightmare said:
From the message it gave you, the only way to get it to work is by replacing the current stock file with that file, but you have to root to do that, .
Click to expand...
Click to collapse
Is there anyway to modify the signature of the application or am I just being ridiculous?
Sent from my HTC Amaze 4G using Tapatalk 2
MidnightXZ said:
Is there anyway to modify the signature of the application or am I just being ridiculous?
Sent from my HTC Amaze 4G using Tapatalk 2
Click to expand...
Click to collapse
You can get an apk signing app, that should change it, I'd recommend changing the name as well and keep your fingers crossed that it won't conflict again and well hope it works too.
Is there a reason to make this issue complicated? There are several free ports of the ICS keyboard available in the play store, why not simply install them in addition to the sense keyboard and use it as your primary input?
Ebonyks said:
Is there a reason to make this issue complicated? There are several free ports of the ICS keyboard available in the play store, why not simply install them in addition to the sense keyboard and use it as your primary input?
Click to expand...
Click to collapse
Because sometimes the complicated fix provides a nice learning which is much more valuable than the fix itself
Sent from my HTC_Amazee

[Q] Nexus Phone App on a HOX+?

Is there any way to replace the stock Sense Phone app (phone.apk?) with a AOSP/Nexus Phone app? I searched on Google and on this forum and I've had no luck finding any information on that for the HTC One X+. Any type of information regarding this is greatly appreciated!
P.S. I am using an AT&T version of the HOX+ and I'm aware that there are developers working on a CM Rom for it (which should have similar phone and dialer apps to what I'm asking for) but since it could take some time until a stable build is released, I'd love to be able to have the (as far as I'm concerned) improved phone calling experience ahead.
Well, you can replace the messaging app to the aosp one and it works fine. Maybe get a copy of the aosp phone apk and see if it works.
Sent from my HTC EVARE_UL using Tapatalk 2
killman2659 said:
Well, you can replace the messaging app to the aosp one and it works fine. Maybe get a copy of the aosp phone apk and see if it works.
Sent from my HTC EVARE_UL using Tapatalk 2
Click to expand...
Click to collapse
Well, first off, where could I get a copy of said apk's? And secondly, the little info I did manage to find implied that in the case of the phone.apk, if it's straight up replaced, it will not work properly. Apparently there should be a procedure to be used for the process to work, but so far I've found no info on this...
joey-pagan said:
Well, first off, where could I get a copy of said apk's? And secondly, the little info I did manage to find implied that in the case of the phone.apk, if it's straight up replaced, it will not work properly. Apparently there should be a procedure to be used for the process to work, but so far I've found no info on this...
Click to expand...
Click to collapse
No, you can't. I looked into it as well.
There's a couple aosp apps that just don't work right on sense, the dialer and people app are one of them. Sense doesn't play nicely with them, and from what I understand you can't really do anything without being a dev.
To answer your question though, you can get the .apk's from other device ROM's. If you wanted the aosp dialer, download an aosp ROM for the nexus 4 and extract Phone.apk from /system/app/
XSafire said:
No, you can't. I looked into it as well.
There's a couple aosp apps that just don't work right on sense, the dialer and people app are one of them. Sense doesn't play nicely with them, and from what I understand you can't really do anything without being a dev.
To answer your question though, you can get the .apk's from other device ROM's. If you wanted the aosp dialer, download an aosp ROM for the nexus 4 and extract Phone.apk from /system/app/
Click to expand...
Click to collapse
I guess I'll try that, thanks... If anyone else has any ideas feel free to share!

Categories

Resources