yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] Wordlywisewiz:
Yeah that is no help at all its the same as holding the power button just like pulling a battery on a phone..
[Asus  Eee Pad Transformer Prime] e.mote:
Good post, OP. It proves karma is real, and that people who are pr!cks get what's coming to them.

ARP spoofing (what Wifikill does to disrupt other connections) is an old man-in-the-middle attack that can be used for wiretapping. IOW, it's ILLEGAL and you can be prosecuted. Would that happen? Probably not, depending on where you use it and how vigilant IT is.

But what will happen is that if you use it on a regular basis--or if you publicize it on forums so more dweebs like you can get their paws on it to get their "whoa cool" kicks--IT will get annoyed from all the complaints and will trace you down. Hope you like long vacations, because for a work or school setting, you will be somewhere else after they get done with you.

Edit: For those who have their Internet connection disrupted by twits using ARP spoofers like wifikill, there are Anti Netcut for Windows, and Wifi Protector for Android. Protector is a paid app, but the author has made it free here on XDA. If you use a hotspot, this is a must-have.

I've not used either, but from Wifi Protector's blurb below, you can pinpoint the attacker's IP and MAC, and report it to your admin.

For those putting up a public hotspot, better routers have a "client isolation" setting. Enabling this setting should defeat many MITM attacks. If your router doesn't have this, get one that does.

ARP attacks aren't new, and there are ways to bring the attackers to heel. The people likely to get hurt most are the mom & pop stores that don't know how to protect themselves, like these folks.

[YOUTUBE]Yu6vbNMj6m0[/YOUTUBE]
[General Questions and Answers] MSynco:
I have the atrix 4g at&t and I was wondering if there were certain font packages or other fonts I could find a Green and black icon pack.
[Galaxy S II Q&A, Help & Troubleshooting] s2dh:
Hi all,

For the last week my phone has powered itself off.

The pattern seems to be at about 3-4pm, just the once and I have to remove the battery...?

I last night stuck a different ROM on my phone, but it still powered off today.?

I have a couple of questions -

Is there an app that tells me why my phone shuts down?

If I have replaced the ROM, could the modem cause this as I recently changed to XXKL1.

Or maybe my kernel -Siyah ver 2.6.6 as this is fairly new..?
[Galaxy S II Q&A, Help & Troubleshooting] Karel kater:
Maybe try siyah 2.6.7 ?

Sent from my GT-I9100
[Galaxy S II Q&A, Help & Troubleshooting] s2dh:
Just flashed 2.6.7, will check tomorrow...
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] mrvirginia:
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)
[Samsung Galaxy Nexus] Kevin3328:
Alright awesome I'll look into it tonight after work
[Samsung Galaxy Nexus] coverton341:
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://xdaforums.com/showthread.php?t=1452530
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] coverton341:
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.
[Samsung Galaxy Nexus] akellar:
You can't replace xml's in that way.
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] qasimzia512:
Hey Kev did u figured it out yet? I replied to ur PM...
[Samsung Galaxy Nexus] coverton341:
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.
[Samsung Galaxy Nexus] akellar:
Sorry misread what you were saying then.
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] Kevin3328:
U can make update zips and yes u should b able to do the same.. I usually borrow someone else's at first
[Samsung Galaxy Nexus] mrvirginia:
wut? o_O 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 :)
[Samsung Galaxy Nexus] coverton341:
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.
[Samsung Galaxy Nexus] 4305ms:
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!:
[Samsung Galaxy Nexus] Kevin3328:
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
[Samsung Galaxy Nexus] akellar:
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 :)
[Samsung Galaxy Nexus] mrvirginia:
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
[Samsung Galaxy Nexus] evilkal:
You guys theme in very odd ways...

Decompile

Edit PNGs and XMLs

Recompile

adb remount

adb push

adb reboot

Ta da?

.9.pngs are only a pain if you don't EDIT them properly. Recompiling has nothing to do with it. You must delete the resources.arsc when you edit any XMLs because it must write a new one. If you edit the smali, you must delete classes.dex and recompile and blah blah blah. It's rather easy once you get the hang of it ;)

Editing images only requires you to extract the APK. Decompiling is not necessary if you don't edit any code.
[Samsung Galaxy Nexus] mrvirginia:
that's what i meant, regarding .9.pngs. it's something with replacing them. i don't remember. it's been a bit since i've messed with those as well (SGS2). and no, you do not delete the resources.arsc when you edit any XMLs. you just delete this if you modify any xml within the xml folder.
[Samsung Galaxy Nexus] akellar:
All of this is true (and basically what was already said) however system apps and especially SystemUI don't like to be adb pushed on this phone. I've had a number of issues with pushing SystemUI and it borking the buttons. Flashing SystemUI with the same apk worked fine.
[Samsung Galaxy Nexus] coverton341:
Excellent resource and thank you. It helped out with which folder in which I should be working with my preferred dpi. I was able to make changes to all of my icons in Google Voice. Now, I would like to change text colour and the background colour. Would this be found in xml code or smali?

Sent via pixie dust, blasted through a Galaxy Nexus
[Samsung Galaxy Nexus] Kevin3328:
that will likely be an XML edit.. usually under colors.. check there
[Samsung Galaxy Nexus] evilkal:
Well my phone must be special because I've been doing it that way since day 1 ;)

---------- Post added at 11:22 AM ---------- Previous post was at 11:20 AM ----------

Well my phone must be special because I've been doing it that way since day 1 ;)

And so far, I've had to delete the resources file if I edit any XML inside the res folder...
[Samsung Galaxy Nexus] Kevin3328:
Alrighty finally set up... able to officially compile and decompile system apks but have not tried framework.. I edited the bottom buttons to test out my process
[Samsung Galaxy Nexus] Kevin3328:
Nothing fancy but at least I can start theming this beast now
[Samsung Galaxy Nexus] mrvirginia:
you're just supposed to delete the XML file itself in the "keep" folder if you use APK Manager. i ported an entire theme from another device so i have lots of knowledge to back this up ;)

i've also modded a ROMs Settings.apk xml within the layout folder iirc with success for ICS so far.

happy theming, mates!
[Samsung Galaxy Nexus] Kevin3328:
Just wanna say thanks u got me rolling in the right direction
[Samsung Galaxy Nexus] akellar:
Not to argue (cause it really doesn't matter) but the script in APK manager itself tells you to delete the .arsc if you changed any xml's. Better safe than sorry, imo.
[Samsung Galaxy Nexus] evilkal:
I've been theming for about 4 years now so I've got plenty of knowledge too... I never have used the keep folder since I never choose to copy any files. More time wasted doing something unnecessary

And I've done no porting on the Gnex. Strictly themed it from scratch myself ;)
[Samsung Galaxy Nexus] Kevin3328:
OK the only apk that I can't get to recompile is framework Res.. everything else goes smooth.. this without making edits decompiling and then recompiling.. any dependencies or commands I am missing.. I have new sdk with apk multi tool alpha 2 working dropped all the new sdk stuff in the "other" folder and using apktool1.3.4.. ne ideas
[Samsung Galaxy Nexus] coverton341:
Take a look at this and see if it helps you any at all.

http://xdaforums.com/showthread.php?t=1427959
[Samsung Galaxy Nexus] Kevin3328:
OK I have found out that I need to edit all the plurals.XML to get the framework to compile
[Samsung Galaxy Nexus] coverton341:
So, I was digging around xml files and found that the colours were all eight hex digits instead of six. Figured out that the leading two digits are the alpha channel and control opacity basically, or at least this is my take on it. So, if I set them to FF, whatever they pertain to should be fully opaque and if I set them to 00 it should be transparent, correct? (I think it works this way, just want a more experienced themer to verify)

Also, I have draw9patch and ran it to edit .9.png files (well, really just to mess around with them, not edit really) and I don't quite understand what it does to be honest. I want to change the colours of the files and it only seems to stretch them. Can I edit the colours in something like photoshop if I don't intend on changing the size of the images?

Thanks everyone for this really cool learning environment, I really appreciate it and it's making the journey more pleasurable than doing it solo.
[Samsung Galaxy Nexus] mrvirginia:
np!

no it doesn't. re-read what it's saying. when i first started this is what i thought as well. then one day i just deleted the resources.arsc while i had edited something that wasn't within the actual xml folder and nothing changed when i loaded the new apk i had modified. i'm not trying to argue because i know what i'm saying is factual and i have work to back it up.

what i am trying to do, however, is point these guys in the right direction.

edit: while you're right that it's better safe than sorry, my point is that it's not necessary to delete that unless you're modifying something in that xml folder. after they try it and realize they don't have to, they'll stop doing it on their own. that's how i learned, lots of trial and error. after getting the dependencies set up, they'll figure it out.

---------- Post added at 04:07 PM ---------- Previous post was at 03:55 PM ----------

yes, your take on the leading two characters of the hex do control opacity. 00 is completely opaque :)

when working with .9.pngs, i never used draw9patch because there's another way. when you recompile, there will be errors spit out because of the .9.pngs where it will say they're being re-named. to overcome this, just take the original images (including modded ones, but mod them outside of decompiling - meaning just pull the images out before hand), and throw them back into your new apk and all will be fine.

also, yes, you can edit images in Photoshop (or whatever you choose). i always look at working with images within apks as something strictly separate that doesn't need decompiling for unless you are wanting to call in a completely new image name.
[Samsung Galaxy Nexus] coverton341:
Excellent on the .9.png files, but now I am fully confused on the opacity of the alpha channel. All of the xml files I have seen have FF leading for the alpha channel for things like text. Also, in hex 00 would indicate none of that channel is used and FF would be full use like FF0000 would be fully red with no green or blue, and since opaque is the opposite of transparent I would think that 00 would be the transparent version and FF would be opaque, but maybe the alpha channel is a transparency channel rather than a opacity channel.

Edit: Nope, looks like I actually was thinking of this correctly. I found this just a second ago on http://developer.android.com/reference/android/graphics/Color.html
[Samsung Galaxy Nexus] Kevin3328:
U can edit a .9 png without errors while the apk is decompiled simply by not touching the black boarder around the image.. that boarder is the "patch"... draw 9 patch is a tool that shows how an image is stretched like when the phone is portrait or landscape mode... the only time u should need draw 9 patch is if u like your theme to be able to be decompiled in the future or if you resize or completely change a .9 PNG
[Samsung Galaxy Nexus] coverton341:
Here's an issue I ran into last night that I just remembered.

I decompiled an apk (Google Voice IIRC) and I started editing .png files in photoshop (just png and no 9.png). Every once in a while I would get an image that, when opened in photoshop, would have a thick black border created around it. For example, I would open one of the star icons and it would just be a grey star with a transparent background. I could darken it up and make it a black star and be perfectly happy with the result. Next I would open another star icon and it would have a black background around it with a blue (I think) outline around it, no transparent background and all on a single layer.

When I opened an icon that had the odd behaviour I would just exit out of it without making any edits so I don't know if it would have translated back to the application, but now I have a few instances where I don't have an edited icon and it is bugging me out.

Has anyone else seen this happen, and if so do I just ignore it, do I try my best to erase the erroneous colours it is adding to the image, or something entirely different?
[Samsung Galaxy Nexus] Kevin3328:
That usually means the image is indexed aka more than one layer or its gray scaled.. gimp is a much better program to edit PNG files in my opinion.. u can't just i ignore it though
[Samsung Galaxy Nexus] evilkal:
What he said.

You need to implant a classes and resources file into the framework to get it to compile. Since it doesn't use either one, it won't write them so you must input them and then remove them once compiled.

.9.pngs require a transparent 1 pixel border around the outside of an image. A patch is a black pixel/line inserted into that border that tells where the image can be stretched. If you put a black line all the way across the top then the entire image will stretch horizontally. If you only draw a 5pixel line, only those 5 will be stretched. Make sense?

The first two hex values do control opacity. 00 is completely opaque. Ff honors the image's opacity settings. Meaning ff will allow a transparent image to retain its transparency I believe.

Hope this helps.
[Samsung Galaxy Nexus] coverton341:
Yeah, I think I got the .9.png files now, but I am getting two totally different answers about the opacity still. One from developer.android.com says that FF is completely opaque and here people are saying that 00 is completely opaque. It can't be both and I have to lean towards developer.android.com since that is a google site right? Or, are both 00 and FF both completely opaque and I am completely missing something here?
[Samsung Galaxy Nexus] Kevin3328:
FF is transparent
[Samsung Galaxy Nexus] coverton341:
I keep seeing people here saying this, but I tried using it for my text and I didn't have text afterwards (using 00 for fully opaque) , and I switched to FF which everyone keeps saying would be transparent and my text was visible. So, either my eyes can only see things that aren't there or my xml codes are backwards. 00 makes it invisible or breaks it and FF makes it visible. I don't know, that's just what I am getting.

Sent via pixie dust, blasted through a Galaxy Nexus
[Samsung Galaxy Nexus] evilkal:
If that's what it does, then that's probably right ;)
[Samsung Galaxy Nexus] he_stheone64:
If there is interest I can start writing a comprehensive Theming guide (but not before February), since info is really spread all over XDA. I learned theming the hard way years ago, but 30 Themes and a couple of hundred mods later it`s different and I also developed some nice ways to improve speed of Theming. I had to with too many Themes...

Also specific How-To`s are nice, but it`s more important to understand Android in order to develop your own mods and layouts. Since I just stopped serious theming after selling my DHD, that might help some of you guys.

---------- Post added at 01:13 PM ---------- Previous post was at 01:10 PM ----------

00 is fully transparent and FF is non transparent. Everything in between determines the grade of your transparency like 80 or AB. The closer you get to FF, the less transparency you have.

Examples:

ff88cc11 is lime green

ab88cc11 would be appr. 30% transparent lime green

7788cc11 would be appr. 60% lime green

---------- Post added at 01:18 PM ---------- Previous post was at 01:13 PM ----------

You only delete resources.arsc, if you themed xml`s inside one of the values folders (which are packed in resources). If you theme xml`s in color, drawable or layout folder, then you need to delete these folders.

You also need to delete resources.arsc, if you added new resources like a new background png or battery png`s, since compiling does generate new ID`s in public.xml in values folder.

---------- Post added at 01:31 PM ---------- Previous post was at 01:18 PM ----------

There are many ways, that lead to Rome. Some are only very slow...

It is important to understand .9`s, so you can choose the right tool depending what you want to achieve.

You only need draw9patch, if you have drawn a new png from scratch. Then the top and left line are for stretching (important if you use gradients) and bottom and right line for the content area. If you only want to change color, you better do the following:

1. Decompile you apk, so you have the lines visible

2. Drag all pngs of one color group, which you want to recolor in a new folder (doesn`t matter whether .png or .9png

3. open the first png and make your changes, while recording an ACTION in PS. IMPORTANT - while recoloring, don`t change the 000000 (black) of the lines. When ready, save your ACTION.

4. Now use the AUTOMATE batch function of PS based on your recorded action and batch recolor the entire folder.

5. Drag back in your decompiled folder and compile.

That procedure saves you countless hours, when dealing with recoloring of pngs and especially .9png. That way I recolored complete frameworks in a few minutes, which saves you time for your own pngs to get the desired result.

---------- Post added at 01:37 PM ---------- Previous post was at 01:31 PM ----------

That happens with indexed files, which are compressed a lot. PS is very bad handling these. In most cases the workaround is opening these with GIMP and save it without background, then you can edit it with PS without these issues.
[Samsung Galaxy Nexus] Kevin3328:
Nice writeup so far man... if u do anything comprehensive I would defenitely read up on it.. I am always willing to learn new things so anything u can contribute is great in my books.. the thing that is challenging me the most is the way ice cream sandwich is setup.. but I'm figuring it out