Android 4.0 SDK Dump - Samsung Galaxy Nexus

http://evervolv.turnertechrepair.info/Clark44/Android4.0-System-Dump.zip
Courtesy of Jrbourque
EDIT: Thanks Efrant, Title changed.
EDITED WITH ALTERNATE LINK

link didnt work for me

The correct link http://evervolv.turnertechrepair.info/Clark44/Android4.0-System-Dump.zip

from twitter.com/#!/ts0cha0tik/status/126506123288248320 the correct download link is t.co/MagyJCbm

Thanks! Now to see what I can rip off and put on my incredible.

Is there any confirmed way to deodex the apps and framework? The latest smali/baksmali didn't work for me.

sdk dump. same as before..

Why do people keep posting SDK dumps? We all know where the SDK dump is available...
OP, please change the title to reflect that this is the SDK dump...

I just jumped into their irc channel to check if anyone had analyzed the reason for baksmali failing on the ICS odex files. It seems it was basically a function that had changed syntax, requiring several other changes but HomerSp sent me a working baksmali.jar. Smali then doesn't complain when compiling the result.
Unfortunately he went offline just after that so I'm not sure he would be ok with me posting it here so I won't. I'll write a script to deodex the files instead and upload the results if nobody else does so.
I was actually just curious about why it failed, didn't expect at working version just like that.
EDIT: Done and uploaded. Thanks again to HomerSp for the working baksmali.jar!
framework-deodexed.zip
app-deodexed.zip
NOTE: I just realized I forgot to fix the signatures so for the apps it will probably fail unless resigned. I leave that to someone else though. I have not verified that these are valid but as I said, at least smali didn't have a problem compiling them so they are hopefully ok.

blunden said:
I just jumped into their irc channel to check if anyone had analyzed the reason for baksmali failing on the ICS odex files. It seems it was basically a function that had changed syntax, requiring several other changes but HomerSp sent me a working baksmali.jar. Smali then doesn't complain when compiling the result.
Unfortunately he went offline just after that so I'm not sure he would be ok with me posting it here so I won't. I'll write a script to deodex the files instead and upload the results if nobody else does so.
I was actually just curious about why it failed, didn't expect at working version just like that.
EDIT: Done and uploaded. Thanks again to HomerSp for the working baksmali.jar!
framework-deodexed.zip
app-deodexed.zip
NOTE: I just realized I forgot to fix the signatures so for the apps it will probably fail unless resigned. I leave that to someone else though. I have not verified that these are valid but as I said, at least smali didn't have a problem compiling them so they are hopefully ok.
Click to expand...
Click to collapse
First i will like to say thanks, great work, the APKs will still not install, it keeps saying "there is a problem parsing the package." Is there any fix???

max63094 said:
First i will like to say thanks, great work, the APKs will still not install, it keeps saying "there is a problem parsing the package." Is there any fix???
Click to expand...
Click to collapse
As I said, they are not signed correctly as that would require me to remove the current signature files and resign them. I am currently sick so I didn't feel like doing it since anyone else could fix that if they wanted to.
To fix it, remove the META-INF folder from the apk and then sign it using jarsigner (part of Java JDK) or signapk. If you want to install them as normal apps you would need to make sure you pack any libs needed in the apk in a lib folder and then sign the apk using your own keystore. I mostly posted it in the hope that it would help someone make an SDK port though but use them however you like.

blunden said:
As I said, they are not signed correctly as that would require me to remove the current signature files and resign them. I am currently sick so I didn't feel like doing it since anyone else could fix that if they wanted to.
To fix it, remove the META-INF folder from the apk and then sign it using jarsigner (part of Java JDK) or signapk. If you want to install them as normal apps you would need to make sure you pack any libs needed in the apk in a lib folder and then sign the apk using your own keystore. I mostly posted it in the hope that it would help someone make an SDK port though but use them however you like.
Click to expand...
Click to collapse
Deleted META-INF, signed the launcher via Kitchen & tried to install via ADB, getting error [INSTALLED FAILED - OLDER SDK]..
Any clue?

fshami said:
Deleted META-INF, signed the launcher via Kitchen & tried to install via ADB, getting error [INSTALLED FAILED - OLDER SDK]..
Any clue?
Click to expand...
Click to collapse
Yes, you need to change the minimum SDK version in AndroidManifest.xml to Gingerbread.
Code:
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="14"
>
</uses-sdk>
You need to change android:minSdkVersion="14" to 9 (for 2.3-2.3.2) or 10 (for 2.3.3-2.3.7). I have a feeling it probably won't work completely as it probably uses some ICS APIs.
The problem is that apktool doesn't work since it uses the non-working baksmali. Because of that, I don't know how to convert the file back to it's binary form.

Anyone has yet installed the ICS live wallpapers?

ilbeppez said:
Anyone has yet installed the ICS live wallpapers?
Click to expand...
Click to collapse
The SDK doesn't include any live wallpapers other than a rotating wireframe cube.

So is anyone going to port the apps to gingerbread? I've seen them posted everywhere but so far no ports

Link_of_Hyrule said:
So is anyone going to port the apps to gingerbread? I've seen them posted everywhere but so far no ports
Click to expand...
Click to collapse
I have already explained just a few posts earlier why it's currently not as easy to do as it normally is.

So no one can do it because the apk tool can't recompile it properly?

Related

Metamorph Force Close Fix

I want to make metamorph work on my device without givving me fcs after i reboot. This happns when i try to change the boot animation by writing to framework-res.apk. i have a working busybox and nandroid backups so i am willing to try anything...please help.
i have tried running fix_permissions which didnt help
i have tried the linking solution
the process works fine because u can see the new boot animation load up fine but the phone gets a billions force closes for almost everything as soo as i unlock.
please help me out because i have searched the very depths of the internet onl to come out empty handed. i know many people are facing this issue so it would be nice to give them a step by step fix.
stericson did a good job with the app from wat i hear and once working is supposed to be an essential app.
pleas helppp
olvap377 said:
I want to make metamorph work on my device without givving me fcs after i reboot. This happns when i try to change the boot animation by writing to framework-res.apk. i have a working busybox and nandroid backups so i am willing to try anything...please help.
i have tried running fix_permissions which didnt help
i have tried the linking solution
the process works fine because u can see the new boot animation load up fine but the phone gets a billions force closes for almost everything as soo as i unlock.
please help me out because i have searched the very depths of the internet onl to come out empty handed. i know many people are facing this issue so it would be nice to give them a step by step fix.
stericson did a good job with the app from wat i hear and once working is supposed to be an essential app.
pleas helppp
Click to expand...
Click to collapse
Mine does too.
ahhhhhhhhhhh
What build are you using?
You gotta be careful with what build you are using and what you are changing.
Don't boot animations usually go into /system/media?
1.6 use shine and mask logos
2.x use Boot animations
They are different so...yeah...be careful.
Macrophage001 said:
You gotta be careful with what build you are using and what you are changing.
Don't boot animations usually go into /system/media?
1.6 use shine and mask logos
2.x use Boot animations
They are different so...yeah...be careful.
Click to expand...
Click to collapse
This is true, but! Also their are two Apk's that always give problems when themed (Wrong). MetaMorph doesn't replace files that don't exist, meaning, if the two different roms have two different locations for boot files example: System/media or framework-res.apk/assets/images/ and neither are present. It will skip over both and not copy. So conclusions state that maybe one or more of the images are not accepted by the Android System.
These two apk's, my friends, are the framework-res.apk and the Launcher.apk...
Many of failed themes from the past proves this theory accurate, ask any old skool themer...
Worse case scenario, check the pictures with the (.9.png) extentions.
wow sorry i really lost rack of this thread sorry
i know specifically that the problem is cause by framework.apk and when i said boot animations i meant mask and shine.
p.s also im using latest build available in market
RichieDaze said:
This is true, but! Also their are two Apk's that always give problems when themed (Wrong). MetaMorph doesn't replace files that don't exist, meaning, if the two different roms have two different locations for boot files example: System/media or framework-res.apk/assets/images/ and neither are present. It will skip over both and not copy. So conclusions state that maybe one or more of the images are not accepted by the Android System.
These two apk's, my friends, are the framework-res.apk and the Launcher.apk...
Many of failed themes from the past proves this theory accurate, ask any old skool themer...
Worse case scenario, check the pictures with the (.9.png) extentions.
Click to expand...
Click to collapse
can u expand a little more on this?
how can i check if the theme im trying to flash will work or how can i fix force closes after metamorph or how can i change the theme so it will work with metamorph?
p.s the actual morph works cause i can see the changes on reboot but as soon as i unlock a get a million force closes
please please reply i desperatly need help
olvap377 said:
please please reply i desperatly need help
Click to expand...
Click to collapse
What Rom are you using? Cyan?
Who's MetaMorph theme are you using? Enoch?
Have you tried installing all of themes EXCEPT framework-res.apk to see if you still have the forecloses, or one by one to see which ones are causing the forecloses?
Some Homework:
If you want to test framework, try to remove all the foldes from the theme (make backups first). Add 1 folder back to theme, then run the MetaMorph cycle. Leave the png folders for last. When you reach a folder containing png's, add 3 png's at a time to each MetaMorph cycle. So now you narrow down the culprit(s) faster.
Example:
I am trying to MetaMorph my Zelda theme. My framework-res folder change, for some reason shuts down my Market on TheOfficial TMO rom. I can download, but when its about to install the apk it forecloses. But it works accurately on TheOfficial AOSP. (???) So, I am thinking that maybe it the way some roms are built.
im using cyan 4.2.15.1 with ebi1 port and im trying to metamorph the mask and shine at startup that writes to framework-res.apk
olvap377 said:
im using cyan 4.2.15.1 with ebi1 port and im trying to metamorph the mask and shine at startup that writes to framework-res.apk
Click to expand...
Click to collapse
Are they located in (theme.zip) framework-res/assets/images/???
RichieDaze said:
Are they located in (theme.zip) framework-res/assets/images/???
Click to expand...
Click to collapse
yes they are and they do work cause after reboot i see it but wen i unlock it show a million force closes
any news please?
olvap377 said:
any news please?
Click to expand...
Click to collapse
Did you do the homework to see which folder the problem was in???
I spent days looking for problems in my themes and other themes to solve the FC's issue. The process of elimination all ways worked out, but time consuming. When you find it, You can post the fix for others with the same problem...
olvap377 said:
any news please?
Click to expand...
Click to collapse
I am not running a Cyan mod. So I cant do it for you. Sorry! A logcat can help pin point the problem.
RichieDaze said:
What Rom are you using? Cyan?
Who's MetaMorph theme are you using? Enoch?
Have you tried installing all of themes EXCEPT framework-res.apk to see if you still have the forecloses, or one by one to see which ones are causing the forecloses?
Some Homework:
If you want to test framework, try to remove all the foldes from the theme (make backups first). Add 1 folder back to theme, then run the MetaMorph cycle. Leave the png folders for last. When you reach a folder containing png's, add 3 png's at a time to each MetaMorph cycle. So now you narrow down the culprit(s) faster.
Example:
I am trying to MetaMorph my Zelda theme. My framework-res folder change, for some reason shuts down my Market on TheOfficial TMO rom. I can download, but when its about to install the apk it forecloses. But it works accurately on TheOfficial AOSP. (???) So, I am thinking that maybe it the way some roms are built.
Click to expand...
Click to collapse
how can i do the homework when ive only got 1 folder in the theme and it only contains 2 pngs the mask and shine?
olvap377 said:
how can i do the homework when ive only got 1 folder in the theme and it only contains 2 pngs the mask and shine?
Click to expand...
Click to collapse
??? Its only boot images??? Sorry, I did not know it was only boot images. Are the png's the proper size?
Would you be willing to flash my Zelda boot screen as a test to see if it is the theme. It might be the rom?
Here it is if you want to try:
i will flash yours and tell u the results and im currently on cyan 4.2.15.1 with bcrook's ebi1 port and enoch installed (via flashable zip)
edit: i cant even metamorph yours it says there isnt a valid thm file found? what does that mean?
edit2: nvm i figured it out u had an extra directory in the zip but i fixed
btw these themes do they have to be signed in a special way somehow like the zips or no
ps ur boot looks really nice
edit3 : still getting a million force closs after unlock so i wiped and restored
olvap377 said:
i will flash yours and tell u the results and im currently on cyan 4.2.15.1 with bcrook's ebi1 port and enoch installed (via flashable zip)
edit: i cant even metamorph yours it says there isnt a valid thm file found? what does that mean?
edit2: nvm i figured it out u had an extra directory in the zip but i fixed
btw these themes do they have to be signed in a special way somehow like the zips or no
ps ur boot looks really nice
edit3 : still getting a million force closs after unlock so i wiped and restored
Click to expand...
Click to collapse
Your gonna have to flash the whole framework-res.apk as an update on the recovery to prevent FC's for now.
Post a logcat on this thread so that every one can see and give you ideas...

Recompiling ContactsProvider.apk in order to support Facebook sync again

Hi people,
we all know that since ICS the Facebook app can't sync anymore with Android because Google disabled that feature, and wants Facebook to alter it's app in order to get the sync working again.
Facebook doesn't seem to be working very hard on that, and i really like my FB contacts being synced. So i read a few things on the web, and i saw this: http://android.modaco.com/topic/350037-enabling-facebook-sync-in-ice-cream-sandwich/. That seemed very interesting, but it still worked with some ugly init.d scripts, and his scripts can't be downloaded as Filesonic keeps deleting those files (and he didn't post the source).
But the first step he explained seemed helpful, and a poster who commented on his post gave a solution to get the sync working with only editing the ContactsProvider.apk: http://android.modaco.com/topic/350...-cream-sandwich/page__p__1873845#entry1873845.
So i tried it out. Took my contactsprovider.apk from OneCosmic's ICS (RC 2.11), and decompiled it with the latest apktool. I altered the files as explained in the posts, and tried to recompile.
But that's where i got stuck. It didn't recompile. I can't get it working. Tried different versions of apktool, loaded framework-res.apk, but it keeps giving errors. It really is a bummer, i wanted to try it out and see if i could get the sync working again.
Does anybody have a clue how i can recompile my files again, or does anybody have another solution? Thanks in advance!
I did manage to add arrays.xml file into resources, and patch that smali file (but the spot was @ line 9319!?).
Here's the apk:
http://www.multiupload.com/EJXMTI2G3W
I haven't signed it, cause I don't know if it's needed for system APKs.
Try it, and sign it yourself if needed.
I used apktool to add arrays.xml into resources and baksmali/smali for smali.
And as always I picked the new files (resources.arsc and classes.dex) and replaced them manually into a copy of the original apk.
Hope it helps.
edit: Ahh, forgot to mention.
I took ContactsProvider.apk from Onecosmics 2.1 build but I guess they're the same!
Not running ICS, not using FB sync, so not tested at all.
theos0o said:
I did manage to add arrays.xml file into resources, and patch that smali file (but the spot was @ line 9319!?).
Here's the apk:
http://www.multiupload.com/EJXMTI2G3W
I haven't signed it, cause I don't know if it's needed for system APKs.
Try it, and sign it yourself if needed.
I used apktool to add arrays.xml into resources and baksmali/smali for smali.
And as always I picked the new files (resources.arsc and classes.dex) and replaced them manually into a copy of the original apk.
Hope it helps.
edit: Ahh, forgot to mention.
I took ContactsProvider.apk from Onecosmics 2.1 build but I guess they're the same!
Not running ICS, not using FB sync, so not tested at all.
Click to expand...
Click to collapse
replaced ContactsProvider.apk on my Captivate running CM9 b12, i get force closes -_-
jerkysh said:
replaced ContactsProvider.apk on my Captivate running CM9 b12, i get force closes -_-
Click to expand...
Click to collapse
Not my problem if u can't read!
theos0o said:
I did manage to add arrays.xml file into resources, and patch that smali file (but the spot was @ line 9319!?).
Here's the apk:
http://www.multiupload.com/EJXMTI2G3W
I haven't signed it, cause I don't know if it's needed for system APKs.
Try it, and sign it yourself if needed.
I used apktool to add arrays.xml into resources and baksmali/smali for smali.
And as always I picked the new files (resources.arsc and classes.dex) and replaced them manually into a copy of the original apk.
Hope it helps.
edit: Ahh, forgot to mention.
I took ContactsProvider.apk from Onecosmics 2.1 build but I guess they're the same!
Not running ICS, not using FB sync, so not tested at all.
Click to expand...
Click to collapse
Thx for trying man, but it gives me force closes on de FB app and the Contacts app. Hmm.. Not really shure what to do now :')
dherre65 said:
Thx for trying man, but it gives me force closes on de FB app and the Contacts app. Hmm.. Not really shure what to do now :')
Click to expand...
Click to collapse
Did you sign it?
theos0o said:
Did you sign it?
Click to expand...
Click to collapse
I opened the apk with winrar and put the contents into the original file. That should work?
dherre65 said:
I opened the apk with winrar and put the contents into the original file. That should work?
Click to expand...
Click to collapse
Errr, no!?
First, you should try the APK I uploaded before, *UNTOUCHED*.
If that doesn't work, try this one which is signed.
Do not modify/touch/change any of them!
theos0o said:
Errr, no!?
First, you should try the APK I uploaded before, *UNTOUCHED*.
If that doesn't work, try this one which is signed.
Do not modify/touch/change any of them!
Click to expand...
Click to collapse
Okay, tried your unsigned and signed apk's, still fc on me... Contact app & fb app.
dherre65 said:
Okay, tried your unsigned and signed apk's, still fc on me... Contact app & fb app.
Click to expand...
Click to collapse
Hmm, ok.
I don't know, just followed the instructions!

Theming questions?

I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
yep, you need to update apktool for use with Android 4.0
edit: more specifically...
-Wrong version of apktool (get the latest)
-Wrong verison of apktool dependancies files (same site)
-Wrong version of aapt.exe in Android SDK (get latest SDK)
Alright awesome I'll look into it tonight after work
Sent from my Galaxy Nexus using xda premium
I have the latest version of all of that and can decompile with apktool. The problem is when I build the new apk and copy over the edited files and push back to the phone the app won't work.
A run down of everything I did is here: http://forum.xda-developers.com/showthread.php?t=1452530
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
You can't replace xml's in that way.
Sent from my Galaxy Nexus using XDA App
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hey Kev did u figured it out yet? I replied to ur PM...
Sent from my Galaxy Nexus using XDA App
Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Kevin3328 said:
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Sorry misread what you were saying then.
Sent from my Galaxy Nexus using XDA App
I am at work until 1030 then I am gonna set up shop on my CPU first... gotta get the new sdk and apktool then I will gtalk u from there with issues.. all I know is this should be a learning experience lol.. by the looks of this phone it could be awhile b4 I learn what everything "is" framework will be all the apks will be different than what I'm used to
Sent from my Galaxy Nexus using xda premium
coverton341 said:
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Click to expand...
Click to collapse
U can make update zips and yes u should b able to do the same.. I usually borrow someone else's at first
Sent from my Galaxy Nexus using xda premium
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
also, it's a big waste (and sometimes troublesome) to flash an entire ROM to update one or a few apks. making one for just testing out things in \system\ will save you time and frustration. you can also make a backup easier for if something bootloops you
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
Let us know how you (hopefully) succeed. Im a bit tempted to try theming myself but ive cant seem to find a guide that is up-to-date - and im learning somthing with every question you are asking - and with every answer the other nice fellows are providing.
:thumbs up!:
I am still trying to figure out how to setup everything.. I know I need newest sdk and newest apk multi tool which I didn't get yet.. I'm gonna tinker around today/tonite and see what I'm doing wrong
Sent from my Galaxy Nexus using xda premium
mrvirginia said:
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
Click to expand...
Click to collapse
See this is how I read it too. I believe the OP means that he's making changes and then replacing the apk in the flashable zip. Not actually replacing the edited xmls in the original apk. Glad I'm not the only one that read it that way though
coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
no decompiling is necessary for tweaking pngs.
smali code is for messing with policies, etc.
.9.png files can be a pain if you don't recompile the apk correctly.
and this should help with your dpi as far as what to edit so you can see it...
http://developer.android.com/guide/practices/screens_support.html

[Q][DISCUSSION] Lockscreen Vol Media Skip

Hey guys, Seems like alot of users in the SGSIII scene can make this mod happen but refuse to explain how ?!
Im personally dying for the source for "lockscreen media skip with volume key hold" source.. although it seems no one is keen to share the source.
We all know and love CRT OFF & 4 way reboot guides source which are readily available for the community right here in this very section.
Could someone please man up and write a guide for media skip, or at least share the source.
My writing skills are awful so a guide from me wouldn't be any good, but as for the source: VolumeLongPressDiff.zip for the smali that can be applied to the relevant framework JAR files from http://forum.xda-developers.com/showthread.php?t=1770564.
For the original Java code (it's originally from CM, I believe) which is not what you want, but fun to read nevertheless, head here and follow the github link in the code.
I appreciate your reply, The diff is great but does it apply to the current 4.1.2 ? Also what methods are we using on windows to apply the diff ? What methods are we using to apply the diff at all, im assuming using linux ?!
I havnt had much luck myself to be honest.. would love someone to explain this further.
fOmey said:
I appreciate your reply, The diff is great but does it apply to the current 4.1.2 ?
Click to expand...
Click to collapse
There's only one way to find out. I'm running 4.1.1 with JKay's framework which already has the volume skip key feature, so I've never tried to apply the patch myself. I suspect it does since if you look at the diff, it only adds new lines of code.
Also what methods are we using on windows to apply the diff ? What methods are we using to apply the diff at all, im assuming using linux ?!
Click to expand...
Click to collapse
I use the tried and true patch program myself, but odds are the patch won't apply cleanly. You can go through the .rej files yourself and see what patch couldn't apply (look at the context of the rejected lines and find those lines in the smali file). When that happens, however, I just prefer to go through the diff myself and apply it manually.
You'll need to place the two smali files in the same folder as the patched PhoneWindowManager.smali. I don't know which JAR file you need to run through baksmali to get PhoneWindowManager.smali but you can look through Jakub's flashable ZIP files to see which JAR file he modified.
I have just unpacked the 4.1.2 android.policy.jar and inserted the Diff files and replaced the ones in the 4.1.2 jar. and it does not work. I am assuming as its for different JB versions. but My phone boots up with problems and FC . So no good
btemtd said:
I have just unpacked the 4.1.2 android.policy.jar and inserted the Diff files and replaced the ones in the 4.1.2 jar. and it does not work. I am assuming as its for different JB versions. but My phone boots up with problems and FC . So no good
Click to expand...
Click to collapse
I was afraid of that.. I had attempted to patch in linux using the diff file and it returned errors which I assume are the same cause of your bootloop..
Someone does have LK4 source, although is holding it very close to there chest and seem refuse to share..
qwerty12 said:
My writing skills are awful so a guide from me wouldn't be any good, but as for the source: VolumeLongPressDiff.zip for the smali that can be applied to the relevant framework JAR files from http://forum.xda-developers.com/showthread.php?t=1770564.
For the original Java code (it's originally from CM, I believe) which is not what you want, but fun to read nevertheless, head here and follow the github link in the code.
Click to expand...
Click to collapse
Maybe you can send me a sort-of guide, which I hopefully understand, and try to make a good tutorial out of it?

[Q] Changing Swiftkey Package Name

Recently SwiftKey released a beta version of their keyboard that backs up data to the cloud and installs separately from the market version. In order to have all my previous use data uploaded, I should be able to install this beta as an update to the market version of SwiftKey and the data will be backed up. The market version has package name com.touchtype.swiftkey and the beta is package name com.touchtype.swiftkey.phone.obeta . I tried changing the package name in AndroidManifest.xml and styles.xml , along with replacing every instance of com.touchtype.swiftkey.phone.obeta with com.touchtype.swiftkey within the decompiled apk. Using both APK-Multi-Tool and Virtuous Ten Studio it will not recompile, and I cannot figure out how to fix the issues to build. Attached to this post is a log from Virtuous Ten Studio when trying to recompile, any help is appreciated. Or if there is another easier way to change the internal package name, please let me know. Thank you in advance!
LOG FILE HERE--> https://copy.com/byWYTLWSt8Idf6OI
Also if someone could enlighten me on how to use the aapt command "--rename-manifest-package" it would be very much appreciated, as I think that would be the easiest solution if I just knew what to type!
imaconeheadXD said:
Recently SwiftKey released a beta version of their keyboard that backs up data to the cloud and installs separately from the market version. In order to have all my previous use data uploaded, I should be able to install this beta as an update to the market version of SwiftKey and the data will be backed up. The market version has package name com.touchtype.swiftkey and the beta is package name com.touchtype.swiftkey.phone.obeta . I tried changing the package name in AndroidManifest.xml and styles.xml , along with replacing every instance of com.touchtype.swiftkey.phone.obeta with com.touchtype.swiftkey within the decompiled apk. Using both APK-Multi-Tool and Virtuous Ten Studio it will not recompile, and I cannot figure out how to fix the issues to build. Attached to this post is a log from Virtuous Ten Studio when trying to recompile, any help is appreciated. Or if there is another easier way to change the internal package name, please let me know. Thank you in advance!
LOG FILE HERE--> https://copy.com/byWYTLWSt8Idf6OI
Also if someone could enlighten me on how to use the aapt command "--rename-manifest-package" it would be very much appreciated, as I think that would be the easiest solution if I just knew what to type!
Click to expand...
Click to collapse
Zarboz is beast.
Sent from my HTC6435LVW using xda premium
Bump, anyone?
You need to rename each subdirectory to match the new package name as well
Did you replace all references inside the smali too? As in, a reference to com/touchstone/swiftkey/phone/0beta/Class.smali is now com/touchtype/swiftkey/Class.smali
Sent from my buttered S3
CNexus said:
You need to rename each subdirectory to match the new package name as well
Did you replace all references inside the smali too? As in, a reference to com/touchstone/swiftkey/phone/0beta/Class.smali is now com/touchtype/swiftkey/Class.smali
Sent from my buttered S3
Click to expand...
Click to collapse
From what I could tell I replaced everything, the log is showing errors with aapt so it's not building for me still. Would you happen to know how to use the aapt command "--rename-manifest-package"? I saw this post here but I'm not sure where I type what he mentioned or how it works, if you could enlighten me that would be great (since I know you use Linux, maybe it relates?)
http://forum.xda-developers.com/showpost.php?p=37885462&postcount=14

Categories

Resources