Hello,
i am about to make some changes at a ROM for my Galaxy Nexus..
Since I want to change some Headlines in the Settings, I poured the Settings.apk.
I want to decompile and recompile it using apkt-tool. So i followed this guide. (I also tried auto apk tool)
Decompiling successed.
I edited the Settings_headers.xml.
Then i wanted to recompile the apk... But then the following error occurred:
http://www.pic-upload.de/view-15157159/Unbenannt.png.html
Any solutions? What should i do to make it work properly ?
Everytime i try to do it the same Error occurres.. i also tried to not edit anything and just recompile the apk to be sure that the mistake is not a mistake in the settings_headers.xml file.. Same Error.
I hope you can help me
Thanks in advance!
Its a system file,so you might need to add the framework-res.apk to the app,its sometimes needed to recompile,i believe you drag it into the command window.
I already did that with the framework-res.apk that was provided in the same ROM as the Settings.apk..
Same error..
Thois drives me crazy!
Most likely you need to update aapt. Install the latest sdk, and update the platform tools.
Sent from my Galaxy Nexus using xda premium
I have not even installed sdk...
so should i download install and pull the aapt to the folder where apk-tool is in?
Which platform tools do you mean?
Thanks for respnse btw
spartanier7 said:
I have not even installed sdk...
so should i download install and pull the aapt to the folder where apk-tool is in?
Which platform tools do you mean?
Thanks for respnse btw
Click to expand...
Click to collapse
After installing the sdk, run the updater and tick platform tools, and let that install. It will then put all necessary tools in a folder under the sdk. You don't need to put aapt in the same folder as apktool, just make sure it's in your path.
Sent from my Galaxy Nexus using xda premium
All right. Thanks for that. I will just try that and respond later whether it worked or not.
apktool had (has?) problems with ICS. dont even try. if thats where youre getting at spend your time searching xda and rootz for specific solutions, theres been workarounds and even bigfixes/updates. apktool is a ***** to get right because its error messages are basically gibberish, for instance i wasted half a day simply because aapt was not in the same directory (it was in PATH and i could access it, but stil..).
heres my apk environment, maybe it helps: http://www.mediafire.com/?2lyji92qqud6rym
I never had any issues with apktool and ics, and I have done numerous smali edits to both framework and nonframework files. As long as aapt is up to date, and framework-res from the rom you're editing is imported, everything works as expected.
molesarecoming said:
apktool had (has?) problems with ICS. dont even try. if thats where youre getting at spend your time searching xda and rootz for specific solutions, theres been workarounds and even bigfixes/updates. apktool is a ***** to get right because its error messages are basically gibberish, for instance i wasted half a day simply because aapt was not in the same directory (it was in PATH and i could access it, but stil..).
heres my apk environment, maybe it helps: http://www.mediafire.com/?2lyji92qqud6rym
Click to expand...
Click to collapse
Well, i have just downloaded and installed sdk+platform tools.
I´ve out apktool.jar into the platform tools folder and now it seems to work fine!
BIG THANKS for your help
If something goes wrong contrary to expectations I hope that I may come back to this thread and ask again.
Thanks my grandmasters
Edit:
Need help again..
As i said i want to change some headlines in the Settings. So i decompiled the Settings apk and changed the settings_headers.xml
I just changed one line that says
<header android:title="@string/eos_settings" />
Click to expand...
Click to collapse
to
<header android:title="@string/nexium_settings" />
Click to expand...
Click to collapse
now the console says that no ressource was found that matches @string/nexium_settings.
This may be obvious and I feel a bit ashamed for asking but what exactly do i have to change now to make it work?
Thanks in advance.
Sorry again for my noobish questions but.. it takes a village to raise a town
spartanier7 said:
Well, i have just downloaded and installed sdk+platform tools.
I´ve out apktool.jar into the platform tools folder and now it seems to work fine!
BIG THANKS for your help
If something goes wrong contrary to expectations I hope that I may come back to this thread and ask again.
Thanks my grandmasters
Edit:
Need help again..
As i said i want to change some headlines in the Settings. So i decompiled the Settings apk and changed the settings_headers.xml
I just changed one line that says
to
now the console says that no ressource was found that matches @string/nexium_settings.
This may be obvious and I feel a bit ashamed for asking but what exactly do i have to change now to make it work?
Thanks in advance.
Sorry again for my noobish questions but.. it takes a village to raise a town
Click to expand...
Click to collapse
You need to add your string to values/public.xml. Then it will compile.
Sent from my Galaxy Nexus using xda premium
All right. That error is gone now.
Instead I get another type of error message.
"my path"/Settings/res/values/public.xml:2600: error: Public symbol string/nexium declared here is not defined
Click to expand...
Click to collapse
So where do i have to define that string?
Edit:
Nevermind. I got it. Just had to change the values/strings
Ok.. now i have another kind of problem. Compiling the apk successed!
Problem is that though my changes the actual displayed hedlines have NOT changed..
Maybe someone can help me since i know that some of you must have it done at least once..
I´ll show up my steps and maybe someone can discern the mistake or what I forgot and help me to get it right
1. I changed the settings_headers.xml
I changed the line
header android:title="@string/eos_settings" />
Click to expand...
Click to collapse
to
header android:title="@string/nexium_settings" />
Click to expand...
Click to collapse
2. I changed values/public
I changed the line
<public type="string" name="eos_settings" id="0x7f0b0660" />
Click to expand...
Click to collapse
to
<public type="string" name="nexium_settings" id="0x7f0b0660" />
Click to expand...
Click to collapse
3. I changed values/strings
I changed the line
<string name="eos_settings">EOS Settings</string>
Click to expand...
Click to collapse
to
<string name="eos_settings">Nexium Settings</string>
Click to expand...
Click to collapse
4. recompiled
5. pulled the xml folder out of the new compiled apk and put it back in the original .apk
6. put the Settings.apk back to the ROM
I hope someone can help me since I don´t really know what else I have to change to get it working since all these changes have not changed the actual displayed Headlines in the settings
<string name="eos_settings">Nexium Settings</string>
needs to be:
Code:
<string name="nexium_settings">Nexium Settings</string>
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A
Great! It worked as I wanted it.
But I am a 98% sure that I had made that change you mentioned before..
This time I copied not only the xml folder but also the file named "ressources" to the original "Settings.apk"
May that be the reason it worked now? Or should the xml folder be enough?
Again thanks for your help.
spartanier7 said:
Great! It worked as I wanted it.
But I am a 98% sure that I had made that change you mentioned before..
This time I copied not only the xml folder but also the file named "ressources" to the original "Settings.apk"
May that be the reason it worked now? Or should the xml folder be enough?
Again thanks for your help.
Click to expand...
Click to collapse
You need to copy over the resources file as well. It holds the /values/public.xml file among others.
Well,
here I go with another Question.
If i want to change the order of the headlines and their sub options.. Do I just have to change their order in the settings_header.apk?
Related
Hi everybody, I'm trying to make a soundboard to put on the android market. I downloaded a soundboard template from http://myandroidsoundboard.com/, and it works great except I don't know how to successfully change the package name from "com.soundboard" to something else without making the project go all "error" crazy.
I click the package name in the the package explorer and click refactor and I change the package name, but then everything becomes an error because the package name is now different. How can I change the package name successfully so I don't get errors everywhere?
Thank you.
You don't need to change package name of Java classes. You must change package name stored in AndroidManifest.xml and maybe some other files.
Brut.all said:
You don't need to change package name of Java classes. You must change package name stored in AndroidManifest.xml and maybe some other files.
Click to expand...
Click to collapse
I've gone through the android manifest file and I've changed everything there, but do you know what other files might need some changing? The only errors I see are coming from anything with the "R" next to it.
PrestoMovie said:
I've gone through the android manifest file and I've changed everything there, but do you know what other files might need some changing? The only errors I see are coming from anything with the "R" next to it.
Click to expand...
Click to collapse
I think it may be caused by the fact that after changing package name R.java file is generated in different Java package, but app code references original one. I see several ways, how to fix this: you could alter ant building process, use some refactoring tools to modify all references to R class or manually move generated R.java to proper place (and modify package declaration in it).
If you know, what I'm talking, then good. If you don't then it probably does not have sense to explain it further - it will take several pages of posting until you will get it.
Brut.all said:
I think it may be caused by the fact that after changing package name R.java file is generated in different Java package, but app code references original one. I see several ways, how to fix this: you could alter ant building process, use some refactoring tools to modify all references to R class or manually move generated R.java to proper place (and modify package declaration in it).
If you know, what I'm talking, then good. If you don't then it probably does not have sense to explain it further - it will take several pages of posting until you will get it.
Click to expand...
Click to collapse
which way would you say is this easiest? And would you be able to point me in the direction of a link that explains any of them well?
For what it's worth - archival value & others reading this thread now - a link to such info would be appreciated
PrestoMovie said:
which way would you say is this easiest? And would you be able to point me in the direction of a link that explains any of them well?
Click to expand...
Click to collapse
Ok, actually this can be done very simply ;-)
I think the best solution is to refactor code. Do you use some good IDE? Eclipse, Netbeans? If so you could use their refactoring tools, but it is also doable by simple find/replace. Just replace all occurrences of "import old.package.name.R;" in all *.java files by "import new.package.name.R;".
These are basics of Java/Android developing: if you know them, then you should have no problems
Brut.all said:
Ok, actually this can be done very simply ;-)
I think the best solution is to refactor code. Do you use some good IDE? Eclipse, Netbeans? If so you could use their refactoring tools, but it is also doable by simple find/replace. Just replace all occurrences of "import old.package.name.R;" in all *.java files by "import new.package.name.R;".
These are basics of Java/Android developing: if you know them, then you should have no problems
Click to expand...
Click to collapse
I'm using Eclipse. And thank you! Hopefully I can get it working now!
K, for some reason I'm only getting one error now in the androidmanifest.xml and it says "class com.soundboard.SoundBoard doesn't exist", but com.soundboard is no longer the package name.
bump bump bump.
bump.
I'm having the same problems. I've been able to create working .apk's but need to share it in the market and the market won't let me if the package name is the same thanks.
agentkalaw said:
bump.
I'm having the same problems. I've been able to create working .apk's but need to share it in the market and the market won't let me if the package name is the same thanks.
Click to expand...
Click to collapse
Advanced tasks require some knowledge. You must know, what is Android's package name and then changing it will be really easy thing to do.
Ahh and there is new "--rename-manifest-package" switch in newest aapt tool. I didn't test it, but it's official Android tool, so this should work.
PrestoMovie said:
K, for some reason I'm only getting one error now in the androidmanifest.xml and it says "class com.soundboard.SoundBoard doesn't exist", but com.soundboard is no longer the package name.
Click to expand...
Click to collapse
thanks for the help! I was actually able to change the package name and I'm having the exact same problem as the OP ^. I basically just need to edit the androidmanifest.xml file and i should be all set I tried searching on how to edit it after changing package names but no luck. any ideas? how do i edit androidmanifest.xml files to recognize the package name change? thanks again
Its been a long time since this post, but if it helps someone:
Issue: You have a source, you want to build 2 different apks from the same source, and be able to install both in the same device at the same time.
General Solution: Use a refactoring tool, like in eclipse, and rename all package names.
Better Solution: use aapt flag --rename-manifest-package. This does not require you change even a single line in the original source. Just this flag, and pass in a different package name, and whoa, you have a new apk with the different package name. I used it as follows, in the Android.mk:
LOCAL_AAPT_FLAGS := --rename-manifest-package new.package.name
Click to expand...
Click to collapse
Cheers
Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.
what ROM is it from? odex or not?
i used the apk's from king cobras rom.
I can't quite remember (and it could be different on a GSM ROM but I doubt it) but I think if you edit xml you need to remove the arsc or dex from the apk before you recompile.
you can ask here - lots of great help there, including tommyt
http://forum.xda-developers.com/showthread.php?t=1320891
hackit said:
Hi everyone, i used to tommytomatoes linux software to work on framwork and com.htc.resource files and all seemed to go fine with tommy's tools. no errors.
i pushed them to my phone and then installed them using adb.
i restart the phone and end up in a bootloop.
all i did was edit the colors.xml file to change the color and nothing else, no images, not a thing.
is there a way to figure out what is wrong with the 2 apk's i edited?
Thanks for any and all assistance, xml editing is killing me.
Click to expand...
Click to collapse
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.
^^^ that thanks, I couldn't remember lol.
pinky059 said:
If any .xml's are edited, before you recompile the .apk, you should remove the resources.arsc file. Then, compile.
Click to expand...
Click to collapse
il Duce said:
^^^ that thanks, I couldn't remember lol.
Click to expand...
Click to collapse
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?
ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev
dased14 said:
where is the resource.arc file i have looked in the decompiled apk and i dont see it, but i see it in one that i havent decompiled?
Click to expand...
Click to collapse
it build when you compile - then delete from "keep" or whatever before you "finish" (in apkmanager anyway)
hackit said:
ok i keep getting stuck bootlooping.
I have removed the resources.arsc file and lef tit in and either way it's the same, all i'm editing is the colors.xml and nothing else.
If i post my colors.xml and the apk can you maybe try it and see if you can do it?
Thanks to anyone willing to take the time to do this.
Kev
Click to expand...
Click to collapse
post your exact edits, and you MUST remove arsc when edited xml, and your apk here with what you're trying to do >>
http://forum.xda-developers.com/showthread.php?t=1320891
Hi.
Sorry, I wasn't sure if it should be in "Themes", so I posted in General.
I've got neo V with root made on .42 (with ZergRush) and .62 stock fw installed via OTA. I was trying to change the number of desktops in Home.apk. What I do, generally:
1. Decompile Home.apk
2. Edit "number_of_desktop_panes" in values/integers.xml
3. Edit values/styles.xml to avoid compilation error (as advised here).
4. Edit DesktopModelManager.smali (as adviced here), but there's slightly different code (different line number and variable (?) name).
5. Recompile, replace with /system/app/Home.apk
The replace process is 100% good, because restoring original Home.apk do not cause any problems.
I do it from adb. I made the /system/tmp/ dir and given it 777 chmod to do it faster (without /sdcard). I mount /system as R/W, push Home.apk to /system/tmp/, change chmod to 644, then replace /system/app/Home.apk with it. Sometimes I try "sync", sometimes not.
It works only with stock Home.apk.
The problem is with recompiled apps.
I tried:
- xdaAutoTool
- ApkMultiTool
- ApkTools (from here)
- ApkTools (from here)
I also tried signing the app and not signing it (as mentioned here).
I also tried installing another launcher (GO Launcher EX), changing it to default, then replacing Home.apk, then changing again.
I also (huh) tried recompiling the app without any changes (except the one in styles.xml, without it, compilation would not succeed).
I also (getting boring) tried skipping the .smali edit.
Nothing works. If I replace Home.apk without reboot, the Home button doesn't work (single press) and if I was on the desktop when replacing app - it becomes black, no dockbar, nothing.
If I reboot - the phone freezes on SE logo, fortunately I can access it with ADB - when I replace Home.apk with stock one, the phone boots in a couple of seconds without a reboot.
I've got Win7 Professional x64, the newet JRE and JDK for x64, tried newest and older apktool.jar, smali.jar and other files. ApkMultitool was working on the yesterday-updated Android SDK folder. And I have no idea, what am I doing wrong... Do you have any ideas?
EDIT:
- earlier I successfully replaced SystemUI.apk with the changed one (Ultrans v2b) - no problems here
- I've got locked BL and I didn't install any recovery
If i understood corect your problems seems because busybox check your version;
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
umarian said:
If i understood corect your problems seems because busybox check your version;
Click to expand...
Click to collapse
Why busybox would check the Home.apk version? Or maybe I misunderstood you? If it was about busybox's version, I've got 1.18.4
umarian said:
and it easy to work with apk manager here is the link:http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Like I said, I tried it (ApkMultiTool). Decompiles, recompiles, signs (or not) correctly. Just the .apk doesn't work.
Man send a pm my english it not so good and i try to to help if i can
umarian said:
Man send a pm my english it not so good and i try to to help if i can
Click to expand...
Click to collapse
Thanks, I sent you a PM.
I will also check the procedure on 32bit system in a couple of hours. If anyone has another idea, please let me know.
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Sent from my Xoom using Tapatalk
kormatoes said:
Just checking you know semc home has a dependancy app and won't compile correct with out said app /framework or semcgeneric.apk
Click to expand...
Click to collapse
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
WRonX said:
I had no idea, compile and decompile didn't report any errors so I assumed it should be OK.
As I never changed apk with dependencies, can you explain me two things?
1. Which files from /system/framework should I pull and where to place them before decompiling with ApkMultiTool?
2. Will files from framework be changed or are they only needed as resources and are left untouched?
Click to expand...
Click to collapse
Honest it's been months since I used,
decompile with dependency ie framework-
Res.apk then change stuff
Then recompile and in keep folder remove what you changed including resources if xml were changed hopefully you get what im saying
Sent from my MT15i using Tapatalk
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
WRonX said:
OK, I think I got this - SemcGenericUxpRes.apk
Home.apk decompiled with dependencies from this file, then I changed it and compiled. Still the same thing.
Maybe the res file was wrong? Or should I sign it with ApkMultiTool?
Click to expand...
Click to collapse
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Sent from my MT15i using Tapatalk
kormatoes said:
Try framework-res.apk
Then try and get different apk tool we use apkmanager
Click to expand...
Click to collapse
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
WRonX said:
You were right, thanks. I must have tried with the wrong file earlier, because I was quite sure I tried framework-res.apk - and I didn't. And yes, the app should be signed after build.
Now, the Home.apk is working with my changes, but only after this little "hack" from Chainfire.
But I've got another stupid problem - the only thing that doesn't work is the "Photos and Videos" widget... I think I'll give up...
Click to expand...
Click to collapse
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Sent from my MT15i using Tapatalk
kormatoes said:
Now you get it keep going If you changed layout of desk top
widgets need doing to tho
Click to expand...
Click to collapse
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
WRonX said:
Thanks, but in case of widgets I don't even know, where to start from. Why the hell only a couple of them doesn't work now? Photos and Videos, Music Player and Timescape Widget - I think that's all. I have no idea, where it came from :/
EDIT: OK, now I have an idea, but it scares me. As I can see, the only way to compile and run the .apk was to remove
Code:
android:sharedUserId="com.sonyericsson.home"
From AndroidManifest. Now, if I understand properly, the widget needs Home.apk to HAVE that ID? Because logcat says:
Code:
W/System.err( 3399): java.lang.SecurityException: Requesting code from com.sonyericsson.advancedwidget.photo (with uid 10004) to be run in process com.sonyericsson.home (with uid 10138)
Long story short: WTF?!
Click to expand...
Click to collapse
android:sharedUserId="com.sonyericsson.home that's the problem try replacing the compiled resources in a fresh apk
Sent from my MT15i using Tapatalk
I tried removing the same ID from AndroidManifest in PhotoWidget.apk, but it didn't work.
The only thing I've managed to get to know is that no widget from com.sonyericsson.advancedwidget.framework will work and also that I'm not the only one, who has problems with it
kormatoes said:
try replacing the compiled resources in a fresh apk
Click to expand...
Click to collapse
Forgive me, but I don't understand. Can you explain it?
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Sent from my MT15i using Tapatalk
kormatoes said:
I'm unsure what your trying to do but if you get the resources fileand any thing else you changed from the home apk that you made,
and then put IT inside a fresh home apk -ie new untouched home.apk
this should help with what you're saying your problem is
Click to expand...
Click to collapse
OMG, I did it
First of all - I didn't understand you at the first time, about resources and "new" .apk. Now I think I got it (not everything, but enough to get this to work).
The problem I found on my private PC (earlier I was using other PC) was the "Sorry thats not the dependee apk, try again" error when trying to decompile Home.apk with framework-res.apk. It didn't happen before, but I was so tired with all of that, I wanted to try the shortest way, so here's what I did:
1. Decompiled Home.apk without dependencies
2. Made some changes I wanted to make
3. Just compiled the app, answering "y" for question about system app, but without copying "additional files".
4. Replaced resources.arsc file inside original (stock) Home.apk with the one from just compiled unsignedHome.apk, installed and...
- working Home.apk - checked
- working widgets - checked
- happy me - checked!
Thanks!
Your wellcome
Sent from my MT15i using Tapatalk 2 Beta-5
How to change the status-bar background?
i want to change the transparent black background with the image in attachment so that it match my theme.
So which files i have to replace with this background?
Using xPeria Mini with stock ICS ROM
So no help?:crying:
piousheart said:
So no help?:crying:
Click to expand...
Click to collapse
Try to post in Themes and Apps section.
Publiuss said:
Try to post in Themes and Apps section.
Click to expand...
Click to collapse
What is this thread?
mobilephone01 said:
What is this thread?
Click to expand...
Click to collapse
Actually this thread was in general but i moved it
And guys will you all please stick to the topic..any help?
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
iiandskater said:
maybe this ??
http://forum.xda-developers.com/showthread.php?t=1786889
Click to expand...
Click to collapse
See here is my systemUI.apk please add the image at OP (opaque)
piousheart said:
See here is my systemUI.apk please add the image at OP (opaque)
Click to expand...
Click to collapse
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
evilbarcode said:
Why not do it yourself? There is plenty of TUT's around that help you decompile and recompile apks.
Click to expand...
Click to collapse
I tried but when i recompile it & push it in system\app with proper permission, after rebooting phone it stuck bootlogo..
The same happens when i tried to decompile DefaultThemes.apk & MusicWidget.apk they both were not installed...
then i searched & found that we have to compress the resources.arc blablablaaa... & signing with recompiling system apk..
Still after giving a lot of tries i dont understand how to use signing & compress resources.arc blablaballl idk..
If you know than may be you can teach
Rebooted my phone 100z of time to check every method i found but no success
Now i dont wana harm my phone, rebooting it again & again for the things that isn't working for me...
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
piousheart said:
See this thread, i asked on xda but people aren't explaining properly, they just stop answering after certain question:crying:
Click to expand...
Click to collapse
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Ticklefish said:
Well, I am a bit on the busy side.... I assume you didn't try my tool then?
To do this manually, you need to first recompile your apk after you've done all your changes. You already know this bit.
Then:
Make a copy of the old apk
Use 7zip to open both the copy and the recompiled apk
Drag the 'res' folder from the recompiled apk to the copy
Close the copy
Extract 'resources.arsc' from the recompiled apk
Add 'resources.arsc' to the copy, selecting 'STORE' compression
Close the recompiled apk
Open the copy and check that resources.arsc has the same size and packed size
Reboot the phone and go into recovery
Mount the /system partition
Push the apk straight to the right folder
Unmount the /system partition
Reboot the phone
Wait for it all to load
Wait a bit longer
Wait a bit longer still
And you're done.
If you've pulled the app from the phone to a Windows PC then you don't need to worry about permissions. That's only when you copy the app to your sdcard or pull the app using Linux.
Going into recovery might not be needed. Pushing system apps while the phone is running can cause some nasty bugs so I always use recovery just to play it safe. You'll need to reboot most of the time anyway to see the changes you've made.
Instead of pushing, you could make a flashable zip. As an amazing coincidence, Tickle My Android can do that too.
Click to expand...
Click to collapse
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Thank you brother i will try it
and yes i have your tool too, it helped me to restore system fonts when i messed with it & had a bootloop:victory:
Great tool:good:
BTW can i use winrar instead of 7zip?
Click to expand...
Click to collapse
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Ticklefish said:
Excellent. I'm glad it helped.
Technically, you could use any archival program but it has to be one that lets you add files to an archive without compressing them. I find 7zip to be fairly quick and user-friendly. Plus, it's free which is always a good thing.
Click to expand...
Click to collapse
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
piousheart said:
Where is 'STORE' compression can be found in winrar?
How to check that resources.arsc has the same size ( same size compared to with file? ) and packed size?
Click to expand...
Click to collapse
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Ticklefish said:
I don't know. I don't even know if winrar can do it. That's why I suggested using 7zip instead.
To check sizes, just open the app (again, this is using 7zip) and look at the numbers to the right of resources.arsc. One is the original size of the file, the other is the size it's been compressed to. These need to be the same.
Click to expand...
Click to collapse
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
piousheart said:
Leme have my hands on some app..
Edit : I tried this but when ever i put it back to sdcard and look at it the app loses its icon ( just a green android logo ) and when i put it in syste\app with proper permission & then restart it doesn't install and even i tried to install as normal apk then it says parse problem..
What i am doing wrong i followed the same procedure above & also the size of resources is same.
Click to expand...
Click to collapse
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Ticklefish said:
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
Okay thanks..
So i tried to mod even after knowing that it wont work as before..
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else
is i am doing it editing wrong file and yes how can i use your tool for this?
Originally Posted by Ticklefish<br />
I got your pm asking me to reply to this. I do most of my android modding stuff during spare moments at work because I don't have the time at home so I'd have gotten round to answering this in time.<br />
<br />
I'm not sure what you're doing wrong here. Since you're got my tool installed, try using that first. If that works, then we know that there's something going wrong with the manual procedure and we can fix it.<br />
If it doesn't work, then there's something wrong with the mod you're doing and we need to fix that instead.
Click to expand...
Click to collapse
<br />
<br />
Okay thanks..<br />
So i tried to mod even after knowing that it wont work as before..<br />
So what i did in DefaultThemes.apk is edited the Androidmanifest & string files to change the name & nothing else<br />
is i am doing it editing wrong file and yes how can i use your tool for this?
Click to expand...
Click to collapse
To be honest, I don't know how to change the name of an app. It's something I've never done before.
I suspect that you've gotten the mod wrong somewhere but unfortunately I can't advise on where that could be.
Sorry, mate.
Hi i am trying to recompile my modified framework-res.apk after modifying the arrays.xml in Notepad++. I keep running into the ECHO IS OFF error. I was compiling using Framework Flasher and i have no idea what to do.
Any advice?
happily1986 said:
Hi i am trying to recompile my modified framework-res.apk after modifying the arrays.xml in Notepad++. I keep running into the ECHO IS OFF error. I was compiling using Framework Flasher and i have no idea what to do.
Any advice?
Click to expand...
Click to collapse
I think this question will be best suited for the app's thread, where the developer can solve the problem for you.
However, you can try other apk tools e.g. Wanam ICS apk manager.
Swyped from my Samsung Galaxy SII
happily1986 said:
Hi i am trying to recompile my modified framework-res.apk after modifying the arrays.xml in Notepad++. I keep running into the ECHO IS OFF error. I was compiling using Framework Flasher and i have no idea what to do.
Any advice?
Click to expand...
Click to collapse
Like Jokesy said: read the thread (this has happened before) you linked to and post your question in there. wesf90 is still working out the bugs...
"ECHO IS OFF" is not an error but simply the response you get when typing "echo" without further parameters (or the quotes) in CMD, or in this case, a batch script. It returns the current ON/OFF state of echo.
If you are in a hurry you can just try apktool
Hope this helped,
ruan
Jokesy said:
I think this question will be best suited for the app's thread, where the developer can solve the problem for you.
However, you can try other apk tools e.g. Wanam ICS apk manager.
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
yea i did read every page from the thread. In fact, there were at least 3 posters stating that they encounter the problems. Even though the dev did make an enquiry into the matter, there was no followup. In fact, i believe the thread is sort of stagnant.
br.ruan said:
Like Jokesy said: read the thread (this has happened before) you linked to and post your question in there. wesf90 is still working out the bugs...
"ECHO IS OFF" is not an error but simply the response you get when typing "echo" without further parameters (or the quotes) in CMD, or in this case, a batch script. It returns the current ON/OFF state of echo.
If you are in a hurry you can just try apktool
Hope this helped,
ruan
Click to expand...
Click to collapse
Yea i think i may have to resort to using apktool. You know, the only thing i was trying to do was to modify the auto brightness values inside arrays.xml inside framework-res.apk. :/
happily1986 said:
yea i did read every page from the thread. In fact, there were at least 3 posters stating that they encounter the problems. Even though the dev did make an enquiry into the matter, there was no followup. In fact, i believe the thread is sort of stagnant.
Yea i think i may have to resort to using apktool. You know, the only thing i was trying to do was to modify the auto brightness values inside arrays.xml inside framework-res.apk. :/
Click to expand...
Click to collapse
Maybe the tool is designed specifically for the Motorola Droid X2. Even though I think this is unlikely, it may be still possible (I don't know Motorola )
ruan