yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] SOSODU13016:
Simple, usefull

Thanks for the tutorial, this really helped me, that's my first time modding.

I was looking for a transparent app drawer since i turn on my phone for the very first time.

THANK YOU

From france.
[Android Software/Hacking General [Developers Only]] bfo12:
This confused me but i figured it out so i thought i might share incase others get confused as well.

To delete the method look in the Launcher.smali for a line that says ".method updateWallpaperVisibility" , delete everything after that until you get to ".end method" (make sure you delete the ".method updateWallpaperVisibility" and ".end method" line as well), to delete the references find each line that has "updateWallpaperVisibility" (using the "find in files" function in notepad++ as stated in OP) and delete the WHOLE LINE. after that recompile and sign the apk and put it into your phone
[Android Software/Hacking General [Developers Only]] wesamothman:
Deleting a method implicitly means all of it. From function header .method until .end.

I am glad you managed.

--------------------------------------

GT-N7000 - Note I

GT-N7100 - Note II

GT-N8000 - Note 10.1 3G

Motorola Xoom MZ601 - UMTS EURO
[Android Software/Hacking General [Developers Only]] CroVeXx:
Hey, I don't get it at all, what to do here, is this windows os or android os :S :) (sry for my unknowledge :/ ) , and also don't get why would I need to use a laucher.apk when I already have a launcher on my CM9, I mean I just don't get it, do I modify the apk and then install it ? :/ Could you explain it to a beginner (who knows how to flash and root :D ) ?
[Android Software/Hacking General [Developers Only]] wesamothman:
-APK is android related.

-CM roms use trebuchet.apk while aokp uses launcher2.apk. modding way is the same for both. So you pick up the apk related to your rom type.

-then you follow the guide and make a flashable zip to install from recovery.

--------------------------------------

GT-N7000 - Note I

GT-N7100 - Note II

GT-N8000 - Note 10.1 3G

Motorola Xoom MZ601 - UMTS EURO
[Android Software/Hacking General [Developers Only]] jago84:
link to Trebuchet.apk

Could you please paste a link to download original Trebuchet.apk, so that we can work on it? Thanks!
[Android Software/Hacking General [Developers Only]] wesamothman:
The original trebuchet.apk differs from rom to rom on how it was built from source. But you can get it from cm10. It is default launcher in cm10.

If you use another trebuchet from another rom of a different device, it might not work with your device.

--------------------------------------

GT-N7000 - Note I

GT-N7100 - Note II

GT-N8000 - Note 10.1 3G

Motorola Xoom MZ601 - UMTS EURO
[Android Software/Hacking General [Developers Only]] gpvecchi:
I get an error rebuilding apk: integer types not allowed, referred to the 00000000 value of background color...
[Android Software/Hacking General [Developers Only]] wesamothman:
This error comes if your aapt of your apktool is not referring to the correct framework. So you have to get the framework apk file from the same rom where you got the launcher or trebuchet and install it in apktool first

Apktool -f framework-res.apk and then decomplile and do your changes and then build it.

-------------------------

Omega's Team Member

-------------------------

Devices:

---------

GT-N7000 - Note I

GT-N7100 - Note II

GT-N8000 - Note 10.1 3G

Motorola Xoom MZ601 - UMTS EURO
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Ok... I don't understand the .smali part so I have done it wrong and I can't compile apk because I have edited somehow wrong the .smali files.. :/
[Android Software/Hacking General [Developers Only]] wesamothman:
Use notepad++ to search for the method name i mentioned in op. Delete the method all if it and all the lines that refers to it. You have to do this in all smali files that have this reference. Use notepad++ search in files function to search for its all occurences. Or send me the apk and i will see.

-------------------------

Omega's Team Member

-------------------------

Devices:

---------

GT-N7000 - Note I

GT-N7100 - Note II

GT-N8000 - Note 10.1 3G

Motorola Xoom MZ601 - UMTS EURO
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK Thanks! but I use Linux to decompile and recompile + sign & to zipalign apps. :) so I use Gedit to edit .xml, .smali and other files.

But the issue is that I don't understand .smali files at all!

I can find the lines but I don't know which is the last line which is needed to be deleted, is it from .method x to .method y or to somewhere .line xy or what... :/
[Android Software/Hacking General [Developers Only]] wesamothman:
Soon, i will add the code here before and after so that you can do this...
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK! Thank You! :)
[Android Software/Hacking General [Developers Only]] wesamothman:
OP updated with example codes deletion of .smali files content. This should be straight forward now :)

In case you still have issues, let me know and I will be more than glad to assist you :)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Thank You!

It is easier now, but Nexus Launcher's (JB 4.2.2 JDQ39) Launcher.smali doesn't have:

.method updateWallpaperVibility

When I just put updateWallpaperVibility

then it is this one: (line 3117)

invoke-virtual {p0, v0}, Lcom/android/launcher2Launcher;->updateWallpaperVisibility(Z)V

.line 2691
invoke-virtual....

So it's different..

Anyway Thanks! :)
[Android Software/Hacking General [Developers Only]] wesamothman:
Aha. This is for 4.2.2 jb. Okay. Send it to me and let me see
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK, Thanks! :)

Here is the stock Launcher with rotation enabled:

http://xdaforums.com/showthread.php?t=2145289
[Android Software/Hacking General [Developers Only]] wesamothman:
Alright. I checked, it is the same way as my tutorial how to change the code, but anyway,

since i don't have the apktool to build 4.2.2 apks, I only can decompile for now, I could n't build the apk for you.

BUT,

I changed the files and the code for you. Attached...

1) Decompile the apk,

2) Put the attached smali files in smali\com\android\launcher2 and replace the old ones.

3) Put the xml file in \res\layout and replace the old one.

4) Build your apk using apktool for 4.2.2

Note: If you have this apktool, that can build 4.2 apks, just send it to me please, I need it :)

Enjoy :)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Thanks!

But there is few issues: Apktool gave me errors:

I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
/home/carlos/FJ-APKtools-v2.5/Working/res/layout/apps_customize_pane.xml:5: error: Error: Integer types not allowed (at 'layoutDirection' with value '0').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /tmp/APKTOOL6121008541736261092.tmp, -I, /home/carlos/apktool/framework/1.apk, -S, /home/carlos/FJ-APKtools-v2.5/Working/res, -M, /home/carlos/FJ-APKtools-v2.5/Working/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:258)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:337)
at brut.androlib.Androlib.buildResources(Androlib.java:284)
at brut.androlib.Androlib.build(Androlib.java:207)
at brut.androlib.Androlib.build(Androlib.java:180)
at brut.apktool.Main.cmdBuild(Main.java:209)
at brut.apktool.Main.main(Main.java:72)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, /tmp/APKTOOL6121008541736261092.tmp, -I, /home/carlos/apktool/framework/1.apk, -S, /home/carlos/FJ-APKtools-v2.5/Working/res, -M, /home/carlos/FJ-APKtools-v2.5/Working/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:256)

Thank You for your time! :)

I use this APKtool: http://xdaforums.com/showpost.php?p=34633115&postcount=2
[Android Software/Hacking General [Developers Only]] wesamothman:
Yup. These issues are because of framework referencing ...

You have to install the framework in apktool. The very same framework that the launcher came along with.

Apktool if framework-res.apk
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK,I have installed framework files for JB 4.2 and I can successfully compile and decompile JB 4.2.2 .apk files but when I replace the .smali files then I can't recompile the Launcher2.apk. :/
[Android Software/Hacking General [Developers Only]] wesamothman:
Is this framework you installed from the same rom where this launcher2.apk was taken?

What is the error you get?
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
The framework is that what I downloaded from the FJAPKTOOL so it's not from my ROM. :)

When compiling other apps I don't get the errors but when I compile the Launcher2.apk with the .smali files I get the error that I posted earlier.

:)
[Android Software/Hacking General [Developers Only]] wesamothman:
The framework you have to install should be from the same rom where launcher2.apk was taken to be able to build it without errors.
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK, thank you. I try it later when I have flashed my ROM back. :)

EDIT: now when I added the ROM's framework-res.apk and SystemUI.apk, I am only able to decompile but not to compile the launcher that I haven't even modified yet.. so did I do something wrong, should I chance also /user/apktool/framework1-, 2-, 127.apk ?
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
@wesamothman

Sorry, My bad! I don't know what I did wrong before..

But I did it like this:

1. install JB 4.2 ramework files again

2. decompile

3. change .smali files

4. re-compile, add META-INF folder

5. decompile

6. modify the .xml file

7. re-compile, add META-INF folder and resign and zipalign!

8. Flashing!

Now it works!
[Android Software/Hacking General [Developers Only]] wesamothman:
Congrat. Finally!

You made me doubt myself and my guide although i am sure it works ;)

What do i get now from you? ;)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Well.. I have no money, so I click thanks many times and I'll give credit of you! :)

Thank You, this is really amazing.

But there is a little issue:

When I open app drawer and I put it from "vertical" to "landscape" then it goes black and background goes to black too! but if I rotate screen then it goes normal. :)
[Android Software/Hacking General [Developers Only]] wesamothman:
You got me wrong man! I am not asking for money. I always do this for free.

Ok, vertical black background. Hmm. To me it seems there is a missing change...

In the xml file, 2 changes.

In the smali files:

Launcher2.smali 5 or 6 deletions. And other files too. Did you modify apps_customized_page.smali file?

Are you sure all references are deleted?

Just check again cuz to me it seems there is a reference not deleted yet. Find it, then rebuild the apk :)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
I know, but I don't actually have anything to give, I have not any good guides or anything! :D

hmm, I checked it and If I check the size, it has different size, maybe I forgot to replace it. :)

I try it again soon!

Thanks again! :)

EDIT: the issue was in the apktool, it didn't change the .smali files..
[Android Software/Hacking General [Developers Only]] wesamothman:
Exactly. You can use the files i sent you if it is the same launcher you are modding.

And, yes, there is something you can give me. Lol. I want the apktool

Just kidding man. I am always here to help :) good luck.
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
:)

APKTOOL: I use FJ Apktool which is reallygood, but he's thread in XDA is closed and I don't know why.. :/

on Windows I don't really use apktools because I get error when decompiling and compiling System apps.

I have a little weird issue:

when I change the .smali files and I sign apk vi aFJapktool

and when I decompile apk I see the original .smali files, same happens when I decompile via dsixda's android kitchen.

And again Thanks! :D

I can't click thanks:

"Sorry, you are limited to 8 thanks per day"

EDIT: I also notice that you have changed something more too than android:background and that was the issue before, if I only edit the two android_background lines then I can compile it successfully but I don't understand why it won't change the .smali files
[Android Software/Hacking General [Developers Only]] wesamothman:
I didnt use that apktool before so i cant help you with it. You can use apktool for windows.

Latest apktool should support 4.2 apks.

So install the framework and decompile the apk.

Make your changes.

Then build the apk.

Dont sign it.

Just zip all the folder content. Send it to me and i will take care of the manifest.

I will zip it again and send it to you.
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK, unfortunately I don't understand that ow to install framework files in Windows and how to use the apktool commands. Everytime when I have used them then I do something wrong!

On Linux I can easily do it, but I can try it on Mac if it's possible.

One Question:

Did you modify app_customize_pane.xml

line: 8

android:layoutDirection="0">

?

That causes errors when I recompile Laucnher2.apk

on the original file it is:

android:layoutDirection="ltr">

---------- Post added at 09:58 PM ---------- Previous post was at 09:27 PM ----------

Here:

http://www.upload.ee/files/3086000/unsignedLauncher2.apk.html

Decomiled and recompiled via APK multitool (with Nexus's JB 4.2.2 framework-res.apk file) on Windows

Not signed and not zipaligned.

in apps_customize_pane.xml I modified only the two things:

android:background="#ff000000" to android:background="#00000000"

and nothing else.

:)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
On Windows I'm able to add exact thsoe files that is in your .zip file but still the same issue when I rotate screen on app drawer.

So something is wrong yet.. :/

Anyway Thanks! :)

EDIT: Now I get error on Windows.. :/
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [GUIDE] How to get Transparent App Drawer [Launcher2.apk or Trebuchet.apk]

Why not use apex?

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] wesamothman:
Hold on till tomorrow man. I will write up exact steps in details how to do it on windows. The file you uploaded is apk. I needed all files and folders. Usually when you build the apk, you get a folder called build inside the decompiled apk folder. I needed them all. That is why i asked you to send me the entire folder after you build it in zip format. But anyway, i will share the steps tomorrow.

Pre-requisite, you need apktool on windows that is compatible with andriod 4.2 apks.
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
OK!

I have latest Multi APK tool on my Windows!

have packed my APK multi tool folder with all the files you need into .zip, launcher is in \APK-Multi-Tool\place-apk-here-for-modding

framework-res.apk that is needed is in \APK-Multi-Tool\other

I send the .zip file as private message in XDA!

So check you messages. :)

also your files that you gave me is included in Multiapktool. :)
[Android Software/Hacking General [Developers Only]] geva28:
Nice guide, thanks :)

Btw can you give us tutorial transparent statusbar for cm10 too?

I'm sorry if asked in wrong place because this guide is similar
[Android Software/Hacking General [Developers Only]] Yahia700:
I will try it today , i hope it do work for me :D

Sent From My Evo Galaxy Mini

JellyBean 4.2.2
[Android Software/Hacking General [Developers Only]] Ganesh A:
Should I need to delete all lines which has the keyword updateWallpaperVisibility...

I shall provide u my Trebuchet.apk and Can u make its drawer transparent???
[Android Software/Hacking General [Developers Only]] wesamothman:
Yes. Delete the method statring from .method until .end.

Then delete all the lines containing the method name.
[Android Software/Hacking General [Developers Only]] Yahia700:
help plz

Plz can you edit my trebuchet apk to be visible cuz i dont have a computer now plz help me

Trubuchet of galaxy mini cm10.1
[Android Software/Hacking General [Developers Only]] blake2893:
when I try to Recompile the apk, multi apk tool gives me an error: An Error Ocurred. Read the Log. and i cant even read the Log... :confused:
[Android Software/Hacking General [Developers Only]] KitWasHere:
This is awesome. Much better than the flat black.

Do you think there is a way to add an opacity to the background, instead of delete it? Like make it a little transparent?
[Android Software/Hacking General [Developers Only]] lukacar1:
LOL replay to myself :)

i finnaly found all gaps and missing parts to compile app but it totaly broke my app... :( had to reflash...

---------- Post added at 06:58 PM ---------- Previous post was at 06:54 PM ----------

try like 60000000 or 8000000 first 2 numbers are transparency. let me know if it works :)
[Android Software/Hacking General [Developers Only]] lukacar1:
drawer still flat black

please help! i did 100% everything! i searched with notepad++ trough whole res/layout for #ff00000 and smali/.../trebuchet for updateWallpaperVisibility i deleted all updateWallpaperVisibility changed both #ff000000 to #0000000 and it is still flat black...
[Android Software/Hacking General [Developers Only]] wesamothman:
Yes. It is possible. I will post the values soon.
[Android Software/Hacking General [Developers Only]] wesamothman:
Here

#00000000 - 100%transparency

#3F000000 - 75% transparency

#7F000000 - 50% transparency

#BF000000 - 25% transparency
[Android Software/Hacking General [Developers Only]] KitWasHere:
Thank you for these. I'm having trouble getting this to work but it's user error, I'm new to playing with .apk's.
[Android Software/Hacking General [Developers Only]] KitWasHere:
So I got it to install sort of. Wondering if maybe there is something more I need to do when editing. When I open up the app drawer, it's semi transparent as I wanted it to be, but only for a second and then does back to flat black. Every time it does, not just like the first time after a reboot or anything.

My method was to decompile, edit as per the OP, recompile, zip align, and push to phone. Everything went as expected, no errors or anything when compiling.

Any ideas? That one second where it works looks great! Haha

EDIT

Took some timing with the screen shots
[Android Software/Hacking General [Developers Only]] wesamothman:
Yeah. This happened to me when i first did it.

There is a missing line you forgot to delete or edit. Just check again.
[Android Software/Hacking General [Developers Only]] KitWasHere:
I started again from scratch and got the same results. Using "Find in Files" with N++, I found 11 instances of "updateWallpaperVisibility" including the .method at the end of Launcher.smali. How many did you get when you did this? I made sure to delete from .method to .end method.
[Android Software/Hacking General [Developers Only]] wesamothman:
Upload your launcher here
[Android Software/Hacking General [Developers Only]] KitWasHere:
https://www.dropbox.com/sh/h9slmhfod9rm4tr/TjgVhp-Lym

I put the original decompiled one, and the one I edited in there. I'm using 9D as my alpha in the apps_customize_pane.xml, which should net me around 63% opacity.

Thanks for taking the time to look at this stuff.
[Android Software/Hacking General [Developers Only]] Yahia700:
Hi am running CM10.1 android 4.2.2 but that on galaxy mini so i have a easy trebuchet to edit , my question is : can i edit my drawer to be transparent too please

Sent From My Evo Galaxy Mini

JellyBean 4.2.2
[Android Software/Hacking General [Developers Only]] zephyr_battle:
will this guide can be used in non-CM and AOKP rom? :rolleyes:
[Android Software/Hacking General [Developers Only]] wesamothman:
Have not tried. But i dont think so if you are referring to tw launcher.

Anyway, decompile the launcher you want to mod, check, and do it by analogy if applicable.
[Android Software/Hacking General [Developers Only]] MetinKale38:
AW: [GUIDE] How to get Transparent App Drawer [Launcher2.apk or Trebuchet.apk]

It should work on almost all aosp roms.

you can also trying to install apex or holo launcher hd, they have an option in their settings to make it the drawer transparent.

Tapatalked with my JellyBean powered HTC Desire
[Android Software/Hacking General [Developers Only]] dyulay:
help

need help. i tried this guide but it seems there is something missing on my mod.

here's a screen shot of my app drawer.

I can't find updateWallpaperVisibility inside AppsCustomizePagedView.smali
[Android Software/Hacking General [Developers Only]] Yahia700:
Can you make my trebuchet transparent please am using cm10.1 android 4.2.2 on galaxy mini please is it possiblr ?
[Android Software/Hacking General [Developers Only]] wesamothman:
I didnt compile 4.2.2 launchers before because of my apktool. But i will try.

So send me your trebuchet.apk and framework-res.apk

And i will try.
[Android Software/Hacking General [Developers Only]] Yahia700:
Ok thanks here they are, please di your best : http://db.tt/yMEmbujL for trebuchet

http://db.tt/82G7G1X8 for framework

Ps: dont give a attention to there low size i just trimmed them a little but they are working like normal ones

Please do your best to make trebuchet transparent
[Android Software/Hacking General [Developers Only]] Brokn.Down:
Add in thread title that this guide is only for ics+ roms (Only add ICS+)
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Hey [MENTION=4579645]wesamothman[/MENTION] Do you know how to do this for .java files? (source files...) :)

I would like to have transparent app drawer on Trebuchet launcher! :)
[Android Software/Hacking General [Developers Only]] rodman01:
I found that on githup: https://github.com/CyanogenMod/andr...mmit/8699dee780796b93bf9257516b8370bf91aebca1

Is that this you are looking for?
[Android Software/Hacking General [Developers Only]] Carlos_Manuel:
Looks like it is, but it's not CM official commit? it's in tree:8699dee780 and is it for ICS or what Android version?, it may not really matter if the lines are same! :)

Btw. it's part 2 of 2, part 1 is missing and I can't find it.. so I try to find it later.. :D

Thank You really much! :)

EDIT: Here's his commits for transparent app drawer:

https://github.com/CyanogenMod/android_packages_apps_Trebuchet/pull/17

Or actually pull requests..
[Android Software/Hacking General [Developers Only]] AndyFox2011:
Hey, nice guide, do you know which update wallpaper method bit in the actual CM source i need to remove for it to work? before i compiled CM i edited the first bit in the /res folder and it is transparent only as the app drawer opens :(

Edit: think i found it, will test in a moment!
[Android Software/Hacking General [Developers Only]] azhiekurosaki:
Nice guide. It did work well on me. For my trebuchet v1 on CM10.1 the updatewallpapervisibility located Launcher.smali Launcher$16.smali and Launcher$20.smali and AppsCustomizePagedView.smali. But I'd like to ask you something though, is there anyway to get rid of this problem?

It happens when I press the drawer menu. and it happens just for 1 second and disappeared after it went to the app list.. I was lucky to be able to take a screen shot of it.
[Android Software/Hacking General [Developers Only]] wesamothman:
It seems there is a method reference still there.

Or

In xml, transparent code should be done twice.
[Android Software/Hacking General [Developers Only]] dyulay:
how to do that? i have the same bug.
[Android Software/Hacking General [Developers Only]] azhiekurosaki:
Well, that's a million dollars question... Lol..... Same question here..