How to host an .apk file? - Android Software Development

Hi!
I've been trying to upload an .apk to my webhost (through ftp) and when I try to download it through the given url, the file doesn't download. Instead I only get text, just as if my host don't understand the file.
Any idea how I can fix this? Is it though .htaccess or what? /:
(I've tried to search this but with no luck)

First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk

kyouko said:
First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
Geniuous! Worked like clockwork!
(I used the http://-link from the start, that's where it failed.. but the .htaccess content did it's job!)
1+Thanks! ^^

Related

Portable Webserver for APK files

Hi guys,
I have just been playing around with the idea of hosting a webserver on my machine that my phone could connect to to download apk files after performing a wipe.
Iv been thinking about this as everytime i wipe my phone i connect back to the market and download appmanager to install apps direct from sd. So instead of having to do that im looking at having them all in a directory on my PC/Flashdrive (as this will be portable) using XAMPP.
Before any gets any wrong ideas this is not intended for any illegal doings. Its just to make my life easier. I thought i would share what i have started to see if this will help out anyone else.
So far i have it working (very rough). But i dont know any coding so this is a bit of a hack job.
I am using XAMPP as stated aswell as a PHP script that will automaticly populate the page will all files within a particular folder.
I have attached the index file i am using.
if you wish to use this please make sure you do a few things.
Install XAMPP
From where you installed XAMPP. In the HTDOCS folder create a "APK" Folder
Place the index.php in the HTDOCS folder
Edit the index.php file to change the path of the APK folder (currently set to D:\\Dream\\xampp\\htdocs\\APK) keep the double slashes "\\"
Start the Apache webserver from the XAMPP control panel
Now connect to Localhost, any files you place in that folder should now appear
Anyone wishing to use this, edit this, whatever you feel like. Go ahead
If you would like to help and change the look and feel of the page it would be greatly appreciated. If you do post the files back up here for all to use
Hope you guys like
Can I ask why you wouldn't just backup your apps to your sdcard (use something like MyBackup) and be done with it?
You can always copy them from your sdcard to your flash drive (and back from flash drive to sdcard temporarily if you need to re-install).
I'm all for experimenting, learning and even playing around a lot. But this seems like overkill. First off, your apps will surely get outdated quickly, and you'll end up upgrading lots of apps. You'll end up spending an enormous amount of time managing your own local library.
Personally, I think you're wasting your time unless your trying to learn how to do something in the process. Maybe you are, and in that case, go for it. Otherwise, enjoy your phone and let the Market do the management for you.
Or you can just have all your .apk's in a folder and use adb to install all of em at once. But like the above post you might have to get updates for alot of em.

Anyone proficient with PHP?

I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
wish i could help
regaw_leinad said:
wish i could help
Click to expand...
Click to collapse
Move along regaw, nothing to see here...
Anyone else? Anyone... anyone? Bueller?
i'm taking a php class and i know < ? p h p
i think thats right??? lol...
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
nebenezer said:
I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
Click to expand...
Click to collapse
tkirton said:
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
Click to expand...
Click to collapse
Apache2
And I just realized I apparently need GIFEncoder, reading up on it...
uhmm ill take a stab at it, i can probably guess what you're trying to set up by why you are needing but you want to be secretive. if you are using a decent webserver gifencoder should be installed. if you are running a script on a server you set up on your local pc then maybe you havent installed php correctly or it may not be running that why its coming up as txt in your browser.
edit: i see you installed zend, so youre running a server on your pc. im willing to bet you havent started the php service.
i have some webspace i havent used for years if you want some space let me know, u can run the script there
Bonified PHP Guru here... send me a PM and I will see what I can do to help.
I too am a php programer. Your issue is that to don't have the php integrated into your web server correctly best way to solve that would be to find some one that can host the app for you. I currently have my own servers at several co-location sites all running php and can let u use for a while
Download and install XAMPP web server, it's easy, free and works great. Then you can veiw your changes.
Yes install xampp and you will get a server running in no time ... just copy your php to inside the apache folder.
Thanks guys!
Only PHP thread on XDA??
I was searching to see if anyone has managed to compile PHP cli for rooted Android devices, and the only result I found is this thread ...
So I installed xampp, very neat program, but I can't figure out how to use it right.
I'm not sure what I'm doing wrong...
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
xampp says Apache and MySQL are running.
Also I went with eclipse-php. I've set up a galileo w/ adt successfully but have not done something right in the php install, I can't create working php projects or files.
I edited and saved as php in notepad++, if anyone wants to check it out and try to get it to execute please let me know
Any help would be appreciated
Thanks
nebenezer said:
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
Click to expand...
Click to collapse
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
centran said:
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
Click to expand...
Click to collapse
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
nebenezer said:
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
Click to expand...
Click to collapse
The correct directory for xampp is in htdocs.
damageless said:
The correct directory for xampp is in htdocs.
Click to expand...
Click to collapse
Tried that one also.. BUT I didn't try it after renaming to index.php
One more shot!
*edit, still just getting raw code, which I suppose is better than an error code
thanks damage
pm me your php script. probably best to just pastebin.ca it. If it is showing you the code after putting it in the htdocs directory that means you found the right directory. Usually when php is not configured correctly on your web server it doesn't just show you the code, the mime type is not recognized and offers it as a download. So your browser would try to download "index.php" or whatever instead of just showing you raw php.
hahhaah.. I know what you're up to....
Here's how I did it before your modifications you're working on: http://i0v.net/matrix/

Need a means to compile apks

OK seeing as my computer currently doesn't work, I need to know if there is an app for my phone that will at least edit the contents of an apk, if not compile one. Anyone?
Also, if this is in the wrong section, feel free to move it, mods.
From my X10a running WB CM 6.1.3 V053
Realorasz said:
OK seeing as my computer currently doesn't work, I need to know if there is an app for my phone that will at least edit the contents of an apk, if not compile one. Anyone?
Also, if this is in the wrong section, feel free to move it, mods.
From my X10a running WB CM 6.1.3 V053
Click to expand...
Click to collapse
apk's are just renamed zip files.
If so, then is there an app that will directly edit zip files? And do they need to be set to store compression level? If so, is there an app that does so?
From my X10a running WB CM 6.1.3 V053
Realorasz said:
If so, then is there an app that will directly edit zip files? And do they need to be set to store compression level? If so, is there an app that does so?
From my X10a running WB CM 6.1.3 V053
Click to expand...
Click to collapse
yes, set to store...all you have to do is long-press the file and select rename...same to change it back afterward. I don't know about what app will allow you to set to store, but there are a TON of free zip apps. Check the market
I need to edit them though, and if I extract it edit it then zip it with an app, it's not set to store.
From my X10a running WB CM 6.1.3 V053
Root explorer can open xml files in apps but I don't think it can edit them.
After modding the contents of a non-system apk file i believe you'll have to re-sign the apk. I dont know of any way to do that on your phone, i am admittedly not an expert though. Ive modded icons and such for apps and the only way I could find out how to get them installed was to re-sign them on my PC and push back to the phone.
Sent from my X10i using XDA App
CMoney87 said:
After modding the contents of a non-system apk file i believe you'll have to re-sign the apk. I dont know of any way to do that on your phone, i am admittedly not an expert though. Ive modded icons and such for apps and the only way I could find out how to get them installed was to re-sign them on my PC and push back to the phone.
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Yeah signapktic can sign on the phone, all I need is an app that either will, zip things set to store like in sundae or one that will directly modify the contents of the zip.
From my X10a running WB CM 6.1.3 V053
The files inside apk is I think encrypted. normal text viewers (ex. notepad) cant see it. and the resource files (styles strings colours ) are archived again. Btw it would be great if we have an app to disassemble them within 4n. Coz copying apk from and to to computer is a pain
akila87 said:
The files inside apk is I think encrypted. normal text viewers (ex. notepad) cant see it. and the resource files (styles strings colours ) are archived again. Btw it would be great if we have an app to disassemble them within 4n. Coz copying apk from and to to computer is a pain
Click to expand...
Click to collapse
Well making it a zip on my phone didn't screw anything up. I can still browse normally. What I need is a means to edit a zip without compressing it, like you have to for bootanimatjons and everything else.
From my X10a running WB CM 6.1.3 V053
I would suggest having a look through the market....download every free app you can find and see if any help. There are so many out there that I have no idea which would work for exactly what you will want it to do. Really, trial and error is the best way, sometimes lol
eclipse
I'm not sure I understand correctly, some previously mentioned are right on track.
Contents of an APK file are as normal zip files, extract the APK with winrar, 7zip or similar program.. make modifications and re-zip it and change the file name.
Important process called "Zip Align" optimizes the file for the APK format and helps to optimize and align the archive for memory mapping I/O ensuring the payload is delivered correctly, for more info - mmap
If you would like to reverse an APK file, I choose to use APKTOOL a Google hosted project and complete with it's own reverse engineering syntax called "baksmali" - This wraps AAPT - Android Asset Packaging Tool part of the android SDK - need this installed.
An issue exists with obfuscated Java classes. Meaning source code has been scrambled (obfuscation algorithm) enabling it be understood by a compiler but no longer is human readable. Another issue is Signing the APK file as most installers are to authenticate the issuing publisher.
To build an APK anyone only need's have the Eclipse IDE and Android SDK installed and you can do this without even having an Android device by using the emulator to build and test your application.
Happy play!
EDIT: Apk edit and Apk tool are both able to help in this situation also.

[DEV] AndroidLib.dll Expansion Project

Description:
The AndroidLib Expansion Project was created to bring support of more Android devices to my AndroidLib.dll project I'm working on. This project is a Windows executable (compiled batch script) that you will run on your computer with your Android device connected. This will NOT run automatically; it will give you a prompt to run after opening.
The main purpose of this project is to collect data about new phones for AndroidLib.dll, not about your specific phone, but about how it transfers specific data through it's shell and through the Android Debug Bridge (ADB), and more importantly, how that output is formatted.
This information will not be shared with anyone other than myself, and will only be used for further developing AndroidLib.dll to support many more Android devices than it currently does.
Source Code is available under "Download Info"
What it does:
Starts an Adb server
Checks Device List
Checks Device Type
Checks Device Serial (only for unique .zip filename)
Checks For SU
Checks UID
Checks BusyBox
Checks File System
Checks Battery Statistics
Checks Running Processes
Checks /data/system/packages.xml for existance
Checks Build Properties
Checks Shell Environment
Creates Zip of Data Above
Opens Upload Form in Browser After Exiting
NOTE: Does NOT Upload Automatically
Usage:
Download the Windows Executable below and run from any directory on your computer with your Android device connected.
Requirements:
Windows Computer
Android device to test
Download Latest Release
AndroidLibExpansion.exe
Download Info
AndroidLibExpansion.exe MD5: 3a8971f452ab7e3da63e375a859033d4
VirusTotal Report
Source Code
No zip file on my desktop to send...
drcell said:
No zip file on my desktop to send...
Click to expand...
Click to collapse
Check the Desktop folder in %USERPROFILE%\Desktop as well instead of just the graphical desktop. I have tested it working on 5 different computers here...
Can you upload to another site
Like http://www.mediafire.com/
TarekNajem04 said:
Can you upload to another site
Like http://www.mediafire.com/
Click to expand...
Click to collapse
Yeah, you can, if you send me the link to it.. but I just wrote that upload script so it would just go straight to my server.. Upload it to mediafire if you would like.
I realize now that this exe may not have worked correctly. I've had 3 reports now of no zip being created on the desktop. I am working to solve this issue, as you see in the source.. it really has no reason not to be creating on the desktop.
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Archer said:
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Click to expand...
Click to collapse
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
FredFS456 said:
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
Click to expand...
Click to collapse
Thanks for letting me know you ran a full search and nothing came up still, that actually does help me out, telling me it didn't write to anywhere else. I'll have a working version for you guys in a little bit.
Ok guys, fixed the problem. Works great now. Check the source code and VirusTotal report in the first post if you need to. Thanks again for everyone helping with this! And special thanks to nebenezer for testing the new builds!
regaw_leinad said:
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
Click to expand...
Click to collapse
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Archer said:
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Click to expand...
Click to collapse
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
This is my upload link because i couldn't upload with your page. It says "The file you are trying to upload is not a .zip file. Please try again."
http://db.tt/0HoRAK11
It works and I have uploaded the zip
Burned from my laser torch using pencil cells
Uploaded .zip file.
regaw_leinad said:
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
Click to expand...
Click to collapse
Apologies if that's how I came across - it wasn't intended. I've just uploaded a couple of zip files for you.
Thank you to everyone who has uploaded a zip so far! This is really helping development on AndroidLib. I am still accepting more uploads, so if you feel like helping develpment of AndroidLib, feel free to download and run the exe! I'm needing a few more Samsung devices in particular, those seem to vary in output between themselves.
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
The-Milkybar-Kid said:
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
Click to expand...
Click to collapse
Nope haven't got one yet, that'd be awesome! Thanks!

How to Edit XML Files on Your Device (AIDE/Axel)

Here is a method for editing xml files directly on from your phone (as well as a fully functional Eclipse compatible IDE). I'm going to sleep so I'll post a reply I made in another thread first, and clean up in the morning. Have fun..G'night!
-------------------------------------------------------------------------------------------
Quote:
Originally Posted by Toni5830
You can extract xml but you can't see them (only strange symbols) and you can't edit them from phone.. you must use PC and decompile them.. no other possibility
Inviato con Tapatalk 2 dal telefono di casa
-------------------------------------------------------------------------------------------
No, you can edit them on your phone. Axel is one of the apps to use. The second is an IDE called AIDE which is compatible with Eclipse. You can develop, program and publish complete apps from your phone. I figured out how to edit compiled xml the other day. Ninjamorph is also useful because it unpacks the archives into a project which happens to be near where your AIDE projects are.
Begin by opening ninjamorph and choosing the apk to work on and create a project (can do this manually but keep a back up of the apk). Next, open AIDE and create a new project. As an example I'll be editing the lg_allapps_button_text.xml file in LGHome.apk (LG's launcher on G2, so files may differ for you). Choose the HelloWorld setup as that's the less,cluttered one. After creating the project, open up a file manager (you can do this from within AIDE as well) and create the same directory structure for your xml file (probably doesn't matter if a ../res/color xml file is in ../main..but it's good practice. The xml I'm editing is in /res/color, so I'll go into the project directory and create a ../res/color folder.
Now open Axel up and find the xml in the ninjamorph project that you are editing. Again in my case it'll be in /res/color. Go ahead and open it with Axel. Don't bother editing it here, we're going to just go into settings and "save as" (into our AIDE project directory) ../res/color/lg_allapps_button_text.xml. This adds it into our AIDE project and we can now go back into AIDE. In the oberflow action, choose "Goto Files" or whatever it's named (also an icon at the top for this action). It'll open a pane at the bottom with your project files. At this time you'll probably notice AIDE throwing a lot of errors (errors in your code, not app errors lol).
We have to fix every one of them before finish, so might as well start now before editing. Conversely, you could do this in Axel first once you know what kind of errors to expect and fix. In my case, I see two errors because the file is really small. Once clicking on the xml I want to edit in the files pane, I can see that it's telling me string values aren't allowed in the "color' attribute. The color is black but when Axel decompiled it, it changed it from it's ARGB form. I see this -
Code:
#xml namespace blah blah...
.....
....... android:color="1F000008/0xFF000000"
Of course there is more, I just highlighted the attribute I need to fix. You're going to need to learn how attributes need to be formatted or learn and keep a reference handy. Google has nice guides online for building android apps. In this case we change it to:
Code:
...
.... android:color="#FF000000"
Technically yes it's still a string, and yes the wrong format was hexadecimal (sort of), but now we have one less error. On large xmls, this gets annoying but you'll get fast at it. So, I've fixed,myerrors, so now for simplicity I'll just change the color on one of the attributes..to red ("#FFFF0000"). Now that edits are done and errors done, go back in the ooverflow action and scro,down and either click "Run" or "More" and then "Rebuild Project". We aren't worried about any other file, we just want our xml recompiled. Once it's done, if you want you can install your fancy Hello World app (or Tetris game app), lol but it's just as well if you choose not to.
Next, go back into your file manager and find your way back into your AIDE project directory. Locate the bin folder (where your compiled project will be) and navigate to your xml. Again, in my case, I'll be going to /res/color. Make sure you find the compiled version (the binary one with all the cool symbols). Copy this back into the same structure inside the ninjamorph project folder. If you aren't using ninjamorph and manually doing this then make sure you have a backup apk handy and akip the ninjamorph stuff.
Opem Ninjamorph back up and choose to complete your project. Once it's done repackaging it'll ask you if you want to resign the apk
Follow Steven's directions and dont sign it if its a system apk. Next he'll ask about zipaligning (i think?). I don't choose this option at all. If my mods work, then I'll redo the project and choose that option. Problem is, sometimes it can cause issues and you don't want to add more variables in until you know that all,is working or you'll be asking yourself "wonder if my edits were bad,or the zipalignment".
Ninjamorph will create a backup of the apk for you, and now you'll be given the option of installing the apk. You should know what you're doing already but...if using TWRP you can go ahead and replace the modded apk and reboot. Worst that'll happen is boot loops or force closes and you can manually go into recovery and use TWRP's file manager to copy your backup back (may need to mount /system first, and may need to chmod as well. Then try again. If you boot up and all is well, congrats! If using CWM, make sure you have a recovery plan before making the switch.
I have no clue if,there's any easier way. I'm still working on it. Granted, kf you're just going to edit a color like in my example it'd be MUCH easier just using a hex editor. AIDE is a pretty damn slick app as it also supports native mode C/C++ for developing codecs, drivers,,etc. For $8 you can purchase full version with support for larger projects and github and a few other things.
This method should work on any device that can run all those apps. I'm using a LG G2. I'm not the,developer of any of tbose apps so don't come to me if they aren't working: )
Reserved
MidnightHarvester said:
Reserved
Click to expand...
Click to collapse
Thanks sir really appreciated your work
Also please continue to post apk editing posts

Categories

Resources