I am trying to modify k-9 mail and I have done basically what I need. The only issue I am faced with is changing the package name. I have tried using refractor built into eclipse, I have also tried using the tool in the ADT plugin to change the package name. I also tried them both on same source, with no luck. What happens is the name of the package changes, it updates all of the references, the project compiles and installs on my phone. After this i can run some of the app but when the program starts new activities the program force closes. Has anyone been able to change the package name? If so how? I can provide the source I am working with and anyone can try on my source. Thanks in advance.
I also tried them both on same source, with no luck. What happens is the name of the package changes, it updates all of the references...
Click to expand...
Click to collapse
That's what it is used for. There is a function that allows you to rename the application package which is located at (in eclipse):
Right click on the project
Android Tools
Rename application package
This should do the trick
Yea that's the thing, I've renamed other packages for other projects just fine. For some reason K-9 is different.
almyz125 said:
Yea that's the thing, I've renamed other packages for other projects just fine. For some reason K-9 is different.
Click to expand...
Click to collapse
check you manifest, i have found that after a rename/refactor the activity names are all bonkers and have to be updated manualy.
just a thought.
*edit, what does the log say?
Pvy.
Someone linked me to this: https://github.com/k9mail/k-9/blob/master/tools/build-beta
I think its what i need, does anyone know how to run this?
Related
While following a tutorial over at androidworld.it I have created and edited a app inventor application that I would like to post up on the market.
Wile I was uploading into the developer console and publishing everything checked out fine until I hit publish. The old way for copy protection will soon be extinct and the following shows up.
The copy protection feature will be deprecated soon, please use licensing service instead.
Click to expand...
Click to collapse
To do this the apk file needs taken back down to source and ...
Integrating the LVL with your application code involves these tasks:
1. Adding the licensing permission your application's manifest.
2. Implementing a Policy — you can choose one of the full implementations provided in the LVL or create your own.
3. Implementing an Obfuscator, if your Policy will cache any license response data.
4. Adding code to check the license in your application's main Activity
Click to expand...
Click to collapse
The closest way ive seen on how to install this is ..
If you are developing using the SDK command-line tools, navigate to the directory containing your application project and open the default.properties file. Add a line to the file that specifies the android.library.reference.<n> key and the path to the library. For example:
android.library.reference.1=path/to/library_project
Alternatively, you can use this command to update the project properties, including the reference to the library project:
android update lib-project
--target <target_ID> \
--path path/to/my/app_project \
--library path/to/my/library_project
Click to expand...
Click to collapse
But decompiling the apk file with apktool creates no "default.properties" file
So I am at a loss on how to get this working.. Anyone recently get a app inventor app working on the market and figure out this part ? The tutorial has no info on this part. it may have been made prior to google implementing this.
Has anyone found a solution to this yet?
nicklantz did you end up with anything useful?
Any help appreciated.
Thanks
I have the same question.
anyone has the solution?
Hi,
I'm having issues compiling a new apk to use with the tmobile theme chooser and could really use some help.
I started by creating a new project in eclipse using the information from the Cyanbread theme to get the right androidManifest.xml, package format, and xml files. The problem I've run into is that, when I try to apply the theme (through CM7 emulator or my own phone), I get an error saying the package is improperly compiled and cannot be applied.
I looked into the source code for the theme chooser and found that "DIALOG_MISSING_THEME_PACKAGE_SCOPE" is what generates that text string. I found tmobile's theme wiki at hxxp://code.google.com/p/tmobile-themes/wiki/NewGlobalThemeEngineDesign (sorry, I cannot post links yet). On that page, I found this:
Resources are generated in the 0x0a package scope. This is designed to separate them in the AssetManager's ResTable. The framework currently uses 0x01 while application packages normally use 0x7f. The aapt tool was modified to support assigning arbitrary package scopes and so you must use the aapt tool found in the themes tree for building your own themes.
Click to expand...
Click to collapse
I installed the repository on my system and found the aapt at ~/prebuilt/sdk/tools/linux/aapt. I tried renaming my "standard" aapt to aapt.old in my android sdk platform-tools folder and putting the modified aapt in its place. I deleted my gen folder in eclipse and made it rebuild it using the modified aapt.
Having done all that, I still get the same error saying the package is improperly compiled. This is all pretty new, and I haven't been able to find any info here on xda or elsewhere that helps. Any help that anyone can give would be really appreciated. Thanks!
UPDATE:
A guide was just posted at forum.xda-developers.com/showthread.php?t=942203 that gave me all the other info I needed to make this happy. If your searching and found this thread, hopefully the guide can help you.
UpwardSpiral said:
UPDATE:
A guide was just posted at forum.xda-developers.com/showthread.php?t=942203 that gave me all the other info I needed to make this happy. If your searching and found this thread, hopefully the guide can help you.
Click to expand...
Click to collapse
Thanks a lot! I've been having the same problem
Hi, I am trying to get the source code of the ToggleWidgets.apk that cames with my Motorola Defy+. I already read many things (since I am new user, I am not able to post outside links) but I was not succesful on doing it. What I did so far:
Copied the frame moto-res.apk, framework-res.apk, and blur-res.apk from my Rom.
Installed it on the apktool, apktool if ...
Runned apktool d ToggleWidgets.apk and it was correctly extracted into the dir ToggleWidgets
Now I was expecting to find a classes.dex file. But there is not, and I got stuck. If someone knows what should I do, or a link with things to clarify, I would be thankful.
I just renamed one of my apps with .zip and opened it, and the classes.dex file was in there. not sure if that helps or not.
@ronaldguilmet: It was the very first thing I tried. Interesting that in my case the file present. Thanks!
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
thgramos said:
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
Click to expand...
Click to collapse
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
eduardomucelli said:
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
Click to expand...
Click to collapse
did you manage to deodex it? if so, can you tell me how? I've tried differents methods with no success. My ultimate goal is to be able to use the Toggle Widgets in a custom ROM like CM9, I don't even know if this is possible without using the motoblur launcher. Could it be that you are trying to do the same thing? it's just that I like those widgets so much and I would like to keep them in a different ROM.
I'm trying to covert a thin-client RDP system into a standalone linux system. I'd like to run a lighthttp server on it and auto-boot it to chromium (on start up).
The device comes with a crappy RDP interface and has a method for installing software UPGRADES via FTP. --- Confirmed working.
Doing some research on the web I was able to find an update package for this device. ATTACHED AS TORRENT FILE.
Using CENTOS I've tried to extract the RAMDISK but Linux doesn't seem to know how to extract the file type. I've tried a ton of scripts from xda-devs none seem to work.
I've tried just changing the system dir to see if I can get that work but it seems that the new image doesn't take to the device. I did see that the scripts have checksum info in them but not sure how to repackage or change them to adjust for the new changes.
I do see the build.prop file with a ton of ANDROID stuff and the package is APK signed. Thus I'm thinking it's an ANDROID setup. Also I see that the device is using busybox.
Any help or ideas how to get this doing what I need it?
Thanks!
chavenor said:
I'm trying to covert a thin-client RDP system into a standalone linux system. I'd like to run a lighthttp server on it and auto-boot it to chromium (on start up).
The device comes with a crappy RDP interface and has a method for installing software UPGRADES via FTP. --- Confirmed working.
Doing some research on the web I was able to find an update package for this device. ATTACHED AS TORRENT FILE.
Using CENTOS I've tried to extract the RAMDISK but Linux doesn't seem to know how to extract the file type. I've tried a ton of scripts from xda-devs none seem to work.
I've tried just changing the system dir to see if I can get that work but it seems that the new image doesn't take to the device. I did see that the scripts have checksum info in them but not sure how to repackage or change them to adjust for the new changes.
I do see the build.prop file with a ton of ANDROID stuff and the package is APK signed. Thus I'm thinking it's an ANDROID setup. Also I see that the device is using busybox.
Any help or ideas how to get this doing what I need it?
Thanks!
Click to expand...
Click to collapse
Any ideas out there?
Bump?
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.