[Theme|AOSP]GB: The way it should have been v13-08/09/11

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
Lol. Sweet.

Sent from my Incredible using XDA Premium App
i rushed it last night.... didnt make it work like gb does and how its white till it connects to Google then goes a color. v.2 has been made i just need to go home to resign it.

/addicted...

i still want to get with you so we can talk about the lock screen mod. i would like to learn to do that.

/feed the addiction!
 

AdhvanIt

Senior Member
Aug 8, 2009
3,316
2,126
0
Grand Rapids, Mi.
i rushed it last night.... didnt make it work like gb does and how its white till it connects to Google then goes a color. v.2 has been made i just need to go home to resign it.

/addicted...

i still want to get with you so we can talk about the lock screen mod. i would like to learn to do that.

/feed the addiction!
No need to sign it, actually. Just pull the old meta-inf folder and push it put it in a flashable zip to /system/app. Kinda hackish, but it works till you can sign it.

Whenever you want to do it, just get at me. My gtalk is always up.

Stupid XDA app sig. Ugh.
 
Last edited:

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
No need to sign it, actually. Just pull the old meta-inf folder and push it put it in a flashable zip to /system/app. Kinda hackish, but it works till you can sign it.

Whenever you want to do it, just get at me. My gtalk is always up.

Stupid XDA app sig. Ugh.
its a apk for the theme manager. i could never get it to work unless i de compile and re compile then sign. any other way it says cant install. its ok i have a **** ton of work today.

all i have to do is launch apk manager type 9 then 10 then 11 and upload it to dropbox and bam im done. i edit the apk with 7zip at work
 

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
im haveing a hard time compileing my framework-res.apk

i decompile it.

add my pic to drawable-hdpi resize it as 480x800

open the file res\layout\keyguard_screen_tab_unlock.xml

edit line to android:id="@id/root" android:background="@drawable/lockscreen_bg"

then when i try to recompile it i get an error for every .png in drawable like this

/home/justin/Android/ApkManager/out/res/values/public.xml:2816: error: Public symbol drawable/zoom_plate declared here is not defined.


what am i doing wrong? please help my friend.
 

AdhvanIt

Senior Member
Aug 8, 2009
3,316
2,126
0
Grand Rapids, Mi.
im haveing a hard time compileing my framework-res.apk

i decompile it.

add my pic to drawable-hdpi resize it as 480x800

open the file res\layout\keyguard_screen_tab_unlock.xml

edit line to android:id="@id/root" android:background="@drawable/lockscreen_bg"

then when i try to recompile it i get an error for every .png in drawable like this

/home/justin/Android/ApkManager/out/res/values/public.xml:2816: error: Public symbol drawable/zoom_plate declared here is not defined.


what am i doing wrong? please help my friend.
you need to install the framework first. if using apktool, do this...

idk how to do it with apkmanager.

Code:
$ apktool if framework-res.apk
It doesn't always give an error when it decompiles incorrectly, but will not recompile right because it can't assign the resources properly.
 
Last edited:

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
you need to install the framework first. if using apktool, do this...

idk how to do it with apkmanager.

Code:
$ apktool if framework-res.apk
It doesn't always give an error when it decompiles incorrectly, but will not recompile right because it can't assign the resources properly.
where do i need to type the code?.

this only happens when i do xml edits. if i just decompile and png and compile it works just fine.
 
Last edited:

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
hmm... it shouldnt recompile right either way if its not decompiling right.
when i just decompile swap a couple of png then recompile it works just fine. or even if i edit the android manifest.

its when i try to edit and xml and compile it. thats when it goes bonkers. i have been reading that you need to use option 22 when compileing a framework. but i dont have that. :(

does your apktool have a script with options or do you do the
-d framework-res.apk out way?



this is what what i get when running the command.

Code:
[email protected]:~$ apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
    at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:404)
    at brut.androlib.Androlib.installFramework(Androlib.java:365)
    at brut.apktool.Main.cmdInstallFramework(Main.java:185)
    at brut.apktool.Main.main(Main.java:61)
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.zip.ZipFile.<init>(ZipFile.java:148)
    at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
    ... 3 more
 
Last edited:

AdhvanIt

Senior Member
Aug 8, 2009
3,316
2,126
0
Grand Rapids, Mi.
when i just decompile swap a couple of png then recompile it works just fine. or even if i edit the android manifest.

its when i try to edit and xml and compile it. thats when it goes bonkers. i have been reading that you need to use option 22 when compileing a framework. but i dont have that. :(

does your apktool have a script with options or do you do the
-d framework-res.apk out way?



this is what what i get when running the command.

Code:
[email protected]:~$ apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.util.zip.ZipException: error in opening zip file
    at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:404)
    at brut.androlib.Androlib.installFramework(Androlib.java:365)
    at brut.apktool.Main.cmdInstallFramework(Main.java:185)
    at brut.apktool.Main.main(Main.java:61)
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.zip.ZipFile.<init>(ZipFile.java:148)
    at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:374)
    ... 3 more
no script options. just

Code:
$ apktool d framework-res.apk out
to build is

Code:
$ cd out
out$ apktool b
the error you're getting looks like the system isn't able to open the apk with your native archive manager to extract and install the framework. is this on ubuntu or windows?

edit: did you install the apktool dependencies as well?
 
Last edited:

SynisterWolf

Retired Senior Moderator
Sep 4, 2010
8,312
6,558
253
Northern California
forum.xda-developers.com
no script options. just

Code:
$ apktool d framework-res.apk out
to build is

Code:
$ cd out
out$ apktool b
the error you're getting looks like the system isn't able to open the apk with your native archive manager to extract and install the framework. is this on ubuntu or windows?

edit: did you install the apktool dependencies as well?
re loaded apktool and all onto my laptop. now i dont get the msg but i get this
j
[email protected]:~$ apktool d framework-res.apk out
Input file (framework-res.apk) was not found or was not readable.