i need help i needed to edit androidmanifest of framework-res.apk...
after compiling successully got bootloop
how to rectify it...pls help someone
ansebovi said:
how to rectify it...pls help someone
Click to expand...
Click to collapse
What did you mod and did you do it correctly?
XperienceD said:
What did you mod and did you do it correctly?
Click to expand...
Click to collapse
i modded to have theme.holo.light
i dont kno to sign androidmanifest.xml and nw i want to kno how to sign framework-res.apk with androidmanifest.xml modified...i dont care about signature because modded service jar to skip sign check...now problem is how to sign framework-res.apk
ansebovi said:
now problem is how to sign framework-res.apk
Click to expand...
Click to collapse
..
XperienceD said:
Signing
Before using the new apk you will need to sign it, to do this you need to extract (open the apk and simply drag and drop them to the dist folder) from the original apk the resources.arsc (only if you haven't changed anything in the values folder, the AndroidManifest.xml and META-INF folder (if it exists), then copy them into the new apk. In WinRar it will give you the option to choose the compression method, and it's vital that you choose Store as the compression method because if you don't then you WILL BOOT LOOP after restarting your Phone!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: If you have edited anything in the values folder then extract the resources.arsc from the new apk and copy (drag and drop) it back in the same manner described above.
Alternatively you can use the following command...
Code:
[B]java -jar signapk.jar testkey.x509.pem testkey.pk8[/B] framework-res.apk.apk framework-resS.apk
...notice the extra "S", the output name has to differ from the input name otherwise it will give an error, if done right it will create a new apk called framework-resS.apk, just remember to rename it back to the original before using it on your Phone.
Click to expand...
Click to collapse
XperienceD said:
..
Click to expand...
Click to collapse
bro the problem is i edited androidmanifest.xml
u r saying for unedited androidmanifest.xml
ansebovi said:
bro the problem is i edited androidmanifest.xml
Click to expand...
Click to collapse
First of all I'm not sure why you've edited that and not the styles.xml, and even if you have edited the manifest then the principles are the same, extract it from the new apk then drag and drop it back.
Related
Hello everybody,
I want to decompile SystemUI.apk (LG Optimus 2X stock 2.3.4) but I get a lot of errors when I try to decompile SystemUI.apk after framework-res.apk:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The files are stock and unmodified.
Can anybody help me?
Thanks!
Felix
Flix123 said:
Hello everybody,
I want to decompile SystemUI.apk (LG Optimus 2X stock 2.3.4) but I get a lot of errors when I try to decompile SystemUI.apk after framework-res.apk:
The files are stock and unmodified.
Can anybody help me?
Thanks!
Felix
Click to expand...
Click to collapse
Why don't you just use 7zip? I always ran into that problem so I just use 7z now
Sent from my LG-P500 using XDA App
But I want to edit some xml's, so I need to decompile it!
You can try using APK Multitool. I've never had a problem with it.
It doesn't work. Everytime the same errors.
Maybe something with my java jdk isn't ok?
Possibly, make sure you have the latest version and that it is in your PATH.
I have the latest jdk, sdk and apktool/apkmanager and the PATH in the control panel is set correctly.
I can decompile all apks except the SystemUI files.
check path easyli with tipping "javac" in cmd
When I type javac in cmd, there comes an error.
What I have to do now?
Delete the file below and try to decompile again
C:\Users\Felix\apktool\framework\1.apk
Thank you very much, that was the solution!!!
same problem as above
tried every method stated in this post but still getting the error in the screenshot......
i am trying to de-compile a cm7 theme....
linishv said:
tried every method stated in this post but still getting the error in the screenshot......
i am trying to de-compile a cm7 theme....
Click to expand...
Click to collapse
im having the same issue decompiling systemui.apk. i have tried everything and still no luck. i tried deleting the framework and reinstalling it prior to decompiling with the apktool i have tried downloading the framework files directly from offline and use them but still no luck so i really dont think there is a problem with the framework in my situation. my java is ok i checked it everything is installed correctly. i have tried apktool apkmanager apk mulittool fjapktool nothing is working everything does the same thing. the only difference that i have though is im running linux instead of windows but most of these tools have their own linux versions anyways so i really dont see that as a issue.
does anyone out there know how to customize xml files the old fashion way before apktools was developed?? how to you convert the xml files so they can be adjusted because if you just extract the xml file without decompiling it the code is partly binary so any ideas on how to customize them without apktools??
same here with my huawei SystemUI.apk jb 4.1.2. But Im just wondering why SystemUI.apk from Huawei G510 and P1 I was able to decompile successfully. Whats the problem?
Decoplied system ui
Check it out "[Guide] Decompile Edit and Recompile SystemUI.apk" ON YOUTUBE
Hello mates!
So i wanted to use Slim ICS in my own language and wanted to start with Settings.apk from Slim 4.2.
btw.I succesfully installed adb on my computer.(checked with cmd)
I'm using latest apktool and i typed;
apktool d Settings.apk
Successfully decompiled.Settings folder created and all of the stuff is in there.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I JUST changed a string in res/values .Then tried to compile it ... And the problem occours....
Help me please.At least i want to do this...
Sorry if i opened the thread in to wrong section but this thing is about developing so..
Have a nice day to all people!
Just typed this earlier in another post but I think it applies with the Setting.apk also. Your framework files will be different, but hopefully it helps you..
NOTE: For all of the above you will need to set the framework for apktool before you will be able to de/recompile apks.
-Drop copies of framework-res.apk, moto-res.apk, blur-res.apk, and SystemUI.apk into the same folder as apktool (with APK Manager it's the "other" folder)
-Open the command prompt on the folder where apktool is (by right-clicking or holding Shift and right-clicking)
-Type the following for each apk in the command prompt:
Code:
apktool if framework-res.apk
-Hit enter
Code:
apktool if moto-res.apk
-Hit enter, and do the same for the other two apks
-Now you should have no de/recompiling problems (well I shouldn't say no... watch them .9.pngs and check the log for errors)
Click to expand...
Click to collapse
Sent from my phone's mind
http://www.blindndumb.com/2012/04/android-tutorial-how-to.html
Follow that guide to the tee and i garuntee you will not have a single issue
alteredlikeness said:
Just typed this earlier in another post but I think it applies with the Setting.apk also. Your framework files will be different, but hopefully it helps you..
Sent from my phone's mind
Click to expand...
Click to collapse
Hmm.I just had framework-re.apk in there and typed apktool if ramework-res.apk ..... Gonna try it today!
Sent from my GT-I9000 using Tapatalk 2
Me too
Help To Edit "SystemUI" contain "status_bar_expand.xml" status bar background color.
I use AOSP ROM, but its status bar notifications background has white color. So that its not clear. I need to know how do i change the notification background color/running apps status bar background color?
This is my notification issue.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now i unpack "systemUI.apk" into my desktop folder, but not clear how to edit "status_bar_expand.xml".
Anyone know it, please help me. I replaced another similar ics rom " systemUI.apk" with this rom, but its not work. My phone not boot up.
I need to edit "status_bar_expand.xml" so that i open it using "HxD" but how do i change its status bar running apps background?
Thanks in advanced.
i think its in SystemUI.apk in system/ not in framework
attack11 said:
i think its in SystemUI.apk in system/ not in framework
Click to expand...
Click to collapse
Thanks you friend. kamarush told me that and I checked the "systemUI.apk", but looks like i can't do anything. :crying:
android addicts said:
Thanks you friend. kamarush told me that and I checked the "systemUI.apk", but looks like i can't do anything. :crying:
Click to expand...
Click to collapse
Some time ago I was using Kamarush's MiniCMSandwich and I make background white... See values folder in decompiled SystemUI.apk and drawable-mdpi folder for background image (don't remember if it was just color or image).
android addicts said:
Now i unpack "systemUI.apk" into my desktop folder, but not clear how to edit "status_bar_expand.xml".
Click to expand...
Click to collapse
When you say you unpacked it, did you actually decompile the apk file or just unzip it?
reaper61616 said:
Some time ago I was using Kamarush's MiniCMSandwich and I make background white... See values folder in decompiled SystemUI.apk and drawable-mdpi folder for background image (don't remember if it was just color or image).
Click to expand...
Click to collapse
Thanks friend your help, ill try it.
Ticklefish said:
When you say you unpacked it, did you actually decompile the apk file or just unzip it?
Click to expand...
Click to collapse
I copied "systemUI.apk" into my desktop and change the file extension ".zip" is it OK? How do i decompile the apk?
android addicts said:
I copied "systemUI.apk" into my desktop and change the file extension ".zip" is it OK? How do i decompile the apk?
Click to expand...
Click to collapse
This way you don't make anything...
See 1st link in my signature and go to 'INSTALLATION'
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I managed to make a few changes to the framework-res.apk a custom rom (to display the buttons on the screen with a resolution pesonalized) i could decompile the file, but now I can not compile it again ... I'm using Apktool ..
Any idea´s?
Change apktool b framework-res.apk to apktool b framework-res
framework-res is your folder name,not framework-res.apk
neectron said:
Change apktool b framework-res.apk to apktool b framework-res
framework-res is your folder name,not framework-res.apk
Click to expand...
Click to collapse
A new error I do not want to give up...
Something to do with languages?
Check out this thread much of problem with apktool are solved there http://forum.xda-developers.com/showthread.php?t=1755243
neectron said:
Something to do with languages?
Check out this thread much of problem with apktool are solved there http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
I replace aapt.exe and i get a new problem
My original Framework-res.apk = 21mb
The new Framework-res.apk = 15mb
I have no idea what happens now
It is compressed that's all.
You can try ziping all the file in build folder with 0 compression.
neectron said:
It is compressed that's all.
You can try ziping all the file in build folder with 0 compression.
Click to expand...
Click to collapse
and how I can do that?
or I can use that file directly without problem?
In build folder,you will have apk folder.
This is how do it to with winrar
Select those files in apk folder -> Right Click -> Add to archive
Archive format zip
Compression method -> store
Ok.
Then rename extension of that archive to .apk.
Copy Meta-Inf and AndroidManifest.xml from orignal apk to new one.
neectron said:
In build folder,you will have apk folder.
This is how do it to with winrar
Select those files in apk folder -> Right Click -> Add to archive
Archive format zip
Compression method -> store
Ok.
Then rename extension of that archive to .apk.
Copy Meta-Inf and AndroidManifest.xml from orignal apk to new one.
Click to expand...
Click to collapse
How do you copy Meta-Inf and AndroidManifest.xml from orignal apk to new one?
Hey Guys.....
I faced some problems and issues while compiling and decompiling apks.
I am using stock ics 4.1.b.0,587. So to compile you have to use following tools.
Files Required:
framework-res.apk
SemcGenericUxpRes.apk
SystemUI.apk
Note that you type correctly in command prompt window.
Softwares Required:
ThemeTool
Link:
http://forum.xda-developers.com/showthread.php?t=1374394
Thanx to XperienceD for this awesome guide.
Follow this guide for java path etc.
MediaFire Link:
http://www.mediafire.com/?tkjxk94yklm2rdu
Apk Manager r5
MediFire Link:
http://www.mediafire.com/?708sbbr0b7d5pbr
Now step by steps..follow these
Place apk in themetool folder.
Open command prompt from theme tool folder...Click Shift and right mouse click.
View attachment 1629889
Now ,
Enter commands
apktool if framework-res.apk
apktool d framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d SemcGenericUxpRes.apk
apktool if SystemUI.apk
apktool d SystemUi.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Our files are added to system.
Now we will use apkmanager to decompile and edit apks and then again compile/build apks.
Open Script window from apk manager.
Enter 22
Select your current project i.e 1 (for framework-res.apk)
Enter 9
It will decompile Framework-res.apk
repeat above for other two apks.
Now we have to edit our decompiled files that are present in project folder.
Select any folder i.e systemui.apk
then edit as you like.
Now See that your current project is set to the one you are modding.
Enter 11 to build apk
Enter y & y....
After that a keep folder will be created by apkmanager ....delete files that you have replaced(i.e original files are shown ,delete them .dont delete any xml file you edited,only delete icons,images etc & also delete resources.arsc from keep folder)
Press Enter.
All done.
Your new apk will be named as UnsignedSystemUI.apk..Note that dont sign or anything else for system apks. otherwise you will get problem i.e bootloop or other.
Copy your apk to sdcard and move to system/app....set permissions.
Reboot & enjoy.
For framework files,if you moded,do adbpush.
Hit thanx if i helped you.