Can someone help me sign this? - General Questions and Answers

So the via browser is a nice browser, and apparently open source > https://github.com/LakorTi/Via
But it had a bunch of baidu data trackers in it's apk. I have modified the host file inside of it to block those trackers.
By doing so though, it seems I am not able to sign this satisfactorily for my phone, as it will not install
Here's the zip
http://www.mediafire.com/file/4dq9hfqc0bdh66d/ViaBrowser.zip
Would anyone help get this compiled and signed? Or explain what I've done wrong with it?
Thank you

jmc92 said:
So the via browser is a nice browser, and apparently open source > https://github.com/LakorTi/Via. But it had a bunch of baidu data trackers in it's apk. I have modified the host file inside of it to block those trackers...
Click to expand...
Click to collapse
I took a quick look and knew exactly what you had done wrong...
What you had done was decompressed the app, made changes and then compressed it back up and tried to sign it.
What you should have done was decompile it with a program like the following and recompile it using the same program.
https://forum.xda-developers.com/showthread.php?t=3333960
Just doing it the way you had done will never work because of the smali Java files that are encoded in the app and using a program for decompiling will reverse engineer the app.
I can't help you do the work but, at least I can help guide you somewhere for you to be able to do some homework to accomplish this so you will know what you need to do in the future.
I wish you the best of luck!
~~~~~~~~~~~~~~~
I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.
PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Ibuprophen said:
I took a quick look and knew exactly what you had done wrong...
What you had done was decompressed the app, made changes and then compressed it back up and tried to sign it.
What you should have done was decompile it with a program like the following and recompile it using the same program.
https://forum.xda-developers.com/showthread.php?t=3333960
Just doing it the way you had done will never work because of the smali Java files that are encoded in the app and using a program for decompiling will reverse engineer the app.
I can't help you do the work but, at least I can help guide you somewhere for you to be able to do some homework to accomplish this so you will know what you need to do in the future.
I wish you the best of luck!
~~~~~~~~~~~~~~~
Click to expand...
Click to collapse
Thank you for your help. Unfortunately it seems that tool is incompatible with 64bit windows installations. At least I know a little bit more about what I did wrong though.

Related

[Q] Rar on android.

Hi:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.

Editing APK files

Hi i have read a few posts about editing apk files but most are only about editing the image files. i need to edit the classes.dex file inside the apk i have done this but when i try and install the apk it doesnt work is this possible to do? thanks
this is not to do anything illegal it is simply to make an android app i use equal to the iphone equivalent (there are less servers for the android app) so i basically want to change the url from the apk to the iphone url)
Cheers
morgs640 said:
Hi i have read a few posts about editing apk files but most are only about editing the image files. i need to edit the classes.dex file inside the apk i have done this but when i try and install the apk it doesnt work is this possible to do? thanks
this is not to do anything illegal it is simply to make an android app i use equal to the iphone equivalent (there are less servers for the android app) so i basically want to change the url from the apk to the iphone url)
Cheers
Click to expand...
Click to collapse
Tried signing the file after modding it?
Sent from my GT-S5360 using xda premium
Hi thanks for your reply, yes i have and it still doesnt work unfortunately
Use apktool to extract the APK, you'll get .smali files instead of classes.dex (this is the decompiled version). Edit these files appropriately, then repack the APK with apktool and sign it. Should work.
Does apktool require command line? if so it is too complicated for me
Yes, it does. If command line is too difficult, it's probably unlikely you'll be able to get this working I'm afraid. You could try this: http://forum.xda-developers.com/showthread.php?t=1619473
It's an IDE for editing APKs, might help. But honestly, the command line part is the easy bit
Just never had any luck with any command line stuff for android never works for me and i hate all the extra crap you have to install to use it. Thanks anyway ill see how i go.
morgs640 said:
Just never had any luck with any command line stuff for android never works for me and i hate all the extra crap you have to install to use it. Thanks anyway ill see how i go.
Click to expand...
Click to collapse
If you wanna do basic stuff wid apktool then its a reaaly easy tool.. The commands are really very small!
Apktool d xxxx.apk for decompile
Apktool b xxxx for compiling n ur done!
Even the complex ones arent difficult! Only the installing of apktool takes time and its the hardest thing in the whole procedure
Sent from my GT-S5360 using XDA
in theory apktool is faily simple. but if you compile for android 4.0 better prepare yourself for huge headaches and a couple of white hairs as this thing wont work. i know two solutions, one consists of a really stupid juggling with two versions, one old which you can barely find, and one new, decompile with the old one, compile with the new one. some guy made a mod though and it finally ends the trouble, but i haven't seen it officially pronounced, which made it so damn hard to find it, hidden in some internet forums. another problem was that aapt needs to be present in the same directory, error codes will just spew out a bunch of gibbersish and you will never know whats wrong so all thats left is trying. but once you got it working it is as easy as pie.
molesarecoming said:
some guy made a mod though and it finally ends the trouble, but i haven't seen it officially pronounced, which made it so damn hard to find it, hidden in some internet forums. but once you got it working it is as easy as pie.
Click to expand...
Click to collapse
You mean this: http://forum.xda-developers.com/showthread.php?t=1551236 ? (It was about two threads below this one at the time I posted this )
nice! i made myself little batch files for this. i just go "apkd skype" to decompile skype.apk and apkb skype for building it, zipping it, signing it. didnt even know theres a guy out there now.
SifJar said:
Yes, it does. If command line is too difficult, it's probably unlikely you'll be able to get this working I'm afraid. You could try this: http://forum.xda-developers.com/showthread.php?t=1619473
It's an IDE for editing APKs, might help. But honestly, the command line part is the easy bit
Click to expand...
Click to collapse
This program worked perfectly thank you so much

[APP] Subversion

All,
Please find the attached native Windows RT binaries for Subversion 1.8.0
Also feel free to give the binaries a try by checking out the following:
svn checkout http://windowsrtdev.googlecode.com/svn/trunk/ windowsrtdev-read-only
I'll try to keep the SVN repo up to date. I'm happy to take suggestions for a layout/tree structure to keep things easy to manage for my fellow XDA members!
Cheers!
EDIT: fixed missing binaries... sorry! please re-download 'rel2'.
That would be an incredibly useful tool to a software developer on RT. Nice one :good:
SixSixSevenSeven said:
That would be an incredibly useful tool to a software developer on RT. Nice one :good:
Click to expand...
Click to collapse
I'm hoping it can be more than that.
It would be nice to get to a point where we can maybe leverage svn as a software repo and provide easy access to app ports, libs, etc. Also would make getting updates much easier. If we could wrap this and the jailbreak with some batch/perl scripts we could have a completely functioning "app store" (so to speak) to help improve the access to Windows RT desktop apps.
Cheers!
Yeah I can definitely see svn contributing towards a "homebrew" store.
Hello, thanks for the port! We use subversion for several things at work, so this could be very useful. I haven't been able to get it to run though.
I extracted the archive (using Ark on linux instead of 7zip), and copied the files to C:\Bin\subversion_1.8.0_arm\
Running svnversion.exe I get an error "the program can't start because libapr-1.dll is missing...". So I renamed libapr.dll to libapr-1.dll. I then get a similar message "libaprutil-1.dll is missing...". Renamed libaptutil.dll to libaprutil-1.dll. Then I got a message that libapr.dll is missing, so I made a copy of the renamed libapr-1.dll back to libapr.dll. Then I get a very different message:
"The procedure entry point apt_atomic_xchgptr could not be located in the dynamic link library C:\Bin\subversion_1.8.0_arm\libsvn_subr-1.dll." This dll does exist in this location.
svn.exe gives an error "The procedure entry point apr_array_clear could not be located in the dynamic link library C:\Bin\subversion_1.8.0_arm\libsvn_fs-1.dll".
Other exes give other similar errors which I can copy down if it'd help. I figured svnversion.exe and svn.exe would be good examples.
I'm not sure what I'm doing wrong. I thought it'd be fairly straightforward, but maybe I'm missing something obvious.
Thanks!
domboy said:
Hello, thanks for the port! We use subversion for several things at work, so this could be very useful. I haven't been able to get it to run though.
I extracted the archive (using Ark on linux instead of 7zip), and copied the files to C:\Bin\subversion_1.8.0_arm\
Running svnversion.exe I get an error "the program can't start because libapr-1.dll is missing...". So I renamed libapr.dll to libapr-1.dll. I then get a similar message "libaprutil-1.dll is missing...". Renamed libaptutil.dll to libaprutil-1.dll. Then I got a message that libapr.dll is missing, so I made a copy of the renamed libapr-1.dll back to libapr.dll. Then I get a very different message:
"The procedure entry point apt_atomic_xchgptr could not be located in the dynamic link library C:\Bin\subversion_1.8.0_arm\libsvn_subr-1.dll." This dll does exist in this location.
svn.exe gives an error "The procedure entry point apr_array_clear could not be located in the dynamic link library C:\Bin\subversion_1.8.0_arm\libsvn_fs-1.dll".
Other exes give other similar errors which I can copy down if it'd help. I figured svnversion.exe and svn.exe would be good examples.
I'm not sure what I'm doing wrong. I thought it'd be fairly straightforward, but maybe I'm missing something obvious.
Thanks!
Click to expand...
Click to collapse
My bad. Download rel2.. should be fixed.
bfosterjr said:
My bad. Download rel2.. should be fixed.
Click to expand...
Click to collapse
Awesome, thanks for fixing it so quickly!

Need help modifying an APK

Hello! Sorry if this is the wrong place to post this I just registered to the forum!
To keep it short I am a frequent player of the game 'Idle Heroes' and I got the idea to take the APK, modify it (for private use of course) and give me resources in the game so I can try out different heroes etc etc.
So I read up on the APKtool and all that but I am having some trouble, I can't find the framework I need.. I am just getting errors when trying to decompile and I can't find any framwork in my phone or online to download..
Any help is appreciated! Thanks!
If it's any help I have a Galaxy S9 (not rooted)
For apk tool you need to write it in the following format in command prompt... (assuming you are using apk tool 2.2.4)
Java –jar apktool_2.2.4.jar d C:\<path to apk file>
But this would give you stuff like the android manifest. If you want the raw source code itself, you would need to use something such as dex2jar. Format is below.
d2j-dex2jar.bat C:\<path to apk file>
mohhaxs said:
For apk tool you need to write it in the following format in command prompt... (assuming you are using apk tool 2.2.4)
Java –jar apktool_2.2.4.jar d C:\<path to apk file>
But this would give you stuff like the android manifest. If you want the raw source code itself, you would need to use something such as dex2jar. Format is below.
d2j-dex2jar.bat C:\<path to apk file>
Click to expand...
Click to collapse
Thanks for your reply! Unfortunately I'm still struggling.. As you said it's the source code I am after. If you haven't played the game I'll try to explain what I am after.
Every day you get daily missions you can do, I'd like to simply change the rewards from let's say 1 summoning scroll to 1000 so that each day I can get 1000 scrolls, and I also want to change the other rewards to give me a couple of thousand gems instead of the 20 I get each day, that will give me enough to get the heroes I am after!
Would you care to help me a little more specifically on how to achieve this? Right now I have put the .apk in "C:\android\apktool" along with the apktool itself (apktool.jar).
But I don't have a .bat file, what kind of .bat file do I want to create? Also I don't have any other folders or such. And yes I have the newest version of Apktool!
No matter what I write in CMD it gives me an error, I don't have any framework files etc and I don't know where to get them.. I did also use the code you gave me (java -jar etc etc) but it also gave me errors .. If you'd like me to try something else and/or post the errors here I'd gladly do so!
Sorry for being such a noob but I have never done anything like this before, I recently started learning C++ but it's mainly simple games (for PC) in UE4 and stuff like that, but nothing for mobile.
Thanks a lot for your time!

Help to find a "clean" SystemUI file

Hi. I own a Uniwa A19S phone which runs Android 6. I just found out it came out of the factory with an infected SystemUI.apk file (a trojan is injected into the file).
Since the trojan can NOT be removed I badly need a clean copy of this file.
The version I'm looking for is: 6.0-1602570800 code 23 (about 5 Mb in size, other versions won't work). I searched around the net with no luck so far, therefore any help is greatly appreciated.
Thank you
Mike
1) how do you know it's infected?
2) why do you think there exist clean version of it?
Thanks alecxs for taking the time to reply.
My Eset antivirus detected this malware. I sent the file for further inspection to the ESET Malware Response Team which promptly replied with this:
Detection is correct. This malware is serving advertisements.
It has ability to download another applications and install them directly into the phone
In fact I found other applications and my phone was even hijacked and 6 calls were made to Tunisia and Morocco (but the phone company reimbursed me).
Luckily I was able to remove SystemUI.apk from the phone but as a result the phone is now crippled although functional. I was hoping to find someone with the same version of my systmeUI.apk file to restore the full functionality. Because, as you may imagine, a factory reset restores the trojan.
Mike
wallace108 said:
Hi. I own a Uniwa A19S phone which runs Android 6. I just found out it came out of the factory with an infected SystemUI.apk file (a trojan is injected into the file).
Since the trojan can NOT be removed I badly need a clean copy of this file.
The version I'm looking for is: 6.0-1602570800 code 23 (about 5 Mb in size, other versions won't work). I searched around the net with no luck so far, therefore any help is greatly appreciated.
Thank you
Mike
Click to expand...
Click to collapse
Use APKtool to unsign and decompile the apk then remove the trojan from the apk then recompile and re-sign the apk. Then replace the infected apk with your modified apk then reboot the device.
Droidriven said:
Use APKtool to unsign and decompile the apk then remove the trojan from the apk then recompile and re-sign the apk. Then replace the infected apk with your modified apk then reboot the device.
Click to expand...
Click to collapse
Thanks Droidriven for the instructions. I've never decompiled an apk file, this is new territory for me. But I'll look into it and will do my best.
Cheers
Mike
So I installed APKtool, and managed to decompile the apk. However, since I'm no expert here, I really don't know how to go about locating the viral payload and properly remove it without affecting the legitimate code during the process .... hmmmm ... I'm winging it here ....
wallace108 said:
So I installed APKtool, and managed to decompile the apk. However, since I'm no expert here, I really don't know how to go about locating the viral payload and properly remove it without affecting the legitimate code during the process .... hmmmm ... I'm winging it here ....
Click to expand...
Click to collapse
check the META-INF for permissions and apk data
Please bear with me because I'm confused. I really don't know what to look for.

Categories

Resources