yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] marcellocord:
Hello guys. I'm creating a thread with a simple tutorial of how to decompile, compile, edit apks. I've seen some threads about it, but all of them were very complicated to understand. It's a simple tutorial, not designed to really mess with apks, just to edit a bit, like swapping icons, images, etc. When I get some more time, I will also teach how to mess with some CM9 Theme Chooser APKs ;)

First of all, what you are going to get with this?

1. Decompile APKs

2. Decompiling all files, so you will only get XML [easy to edit], images and SMALI files [in most cases]

You need to know...

1. Works only Windows [x86 or x64] [You can try on linux, but you will need to download other files of apktool. But the steps are almost the same]

2. Choose the .bat of your version. [x86 = 32 bits] [x64= 64 bits]

3. You need JRE

4. Attached, the most updated apktool.

Let's go...

STEP 1 - preparing

1. I've optimized the files to run at D:\apktool [Another partition]. So, extract the .7z, and make sure that there's a apktool folder at the ROOT of D:\ drive. If you want to put this folder at other place, please pay attention: open the Run [x??].bat on the notepad. If you want the folder at the C:\ drive, delete the "D:" line, and swap the directory to the one you choose. [Example: "C:\Users\....user name....\Desktop"] Just make sure you included the cd before the path. If you want the folder at other place on D:\ drive, just change the directory [Example: "D:\Desktop"], and again, with the "cd" command before the path.

STEP 2 - still preparing...

1. Get framework-res.apk from your ROM [if you are on a Samsung ROM, also get twframework]

2. Extract framework-res.apk here

3. Open the correct .bat of your Windows version

4. Run this command: "apktool if framework-res.apk" [if you are on a Samsung ROM, also do with the other framework]

STEP 3 - now decompiling

1. Now, put the apk you want to edit on your apktool folder.

2. Run this command: "apktool d APK-NAME.apk

3. You may get NO errors when it's done.

4. The out put folder is the folder of the decompiled apk.

STEP 4 - now compiling

1. Run this command: "apktool b APK-NAME" [without the .apk]

2. You may get NO errors when it's done.

3. The output APK is located on \[apktoolfolder]\APK-NAME\dist

STEP 5 - optimizing

1. Sign your APK with this

2. Zipalign your APK with this. You can also use zipalign scripts on your ROM to zipalign.

3. Now you may install your apk normally. [user app or system app]

__________________________________________________ __________________________________________________ ___________________________________________

TIPS

1. You can edit .smali files with Notepad ++

2. You can also edit XML files on the Notepad [Windows notepad. I think that with Notepad ++ also works]

3. Soon, I'm going to teach how to edit CM9 Theme Choose APKs. You will be able to: theme non-themed apps, and replace images.

4. I tried to be the most clear and direct as possible. If something is unclear, tell me now. If you have any suggestions to make the tutorial better, please tell me...
[Galaxy S II Themes and Apps] marcellocord:
reserved...
[Galaxy S II Themes and Apps] marcellocord:
reserved too...
[Galaxy S II Themes and Apps] android_isda_shit:
i reserved it, becouse i was trying it out, and i wanted to be one of the first post here, great tut, lika charm
[Galaxy S II Themes and Apps] VasyleTheBest:
Hi can you help me with this apk? http://xdaforums.com/showthread.php?t=1738252
[Galaxy S II Themes and Apps] marcellocord:
This is a lot harder. Can't do this for you. This isn't playstation2 with it's football games. Sorry. If you still want to try, decompile and search for images to replace.
[Galaxy S II Themes and Apps] sam5154:
Hi,

a question here:

I was succefull to theme system apps, but when I try to theme a normal, it never works. all the processes goes fine, but when i eant to install modified apk it gives error. and even when I copy it to /data/app/ it disappear from app drawer.(after restart of course)
[Galaxy S II Themes and Apps] marcellocord:
I think you forgot to sign. Sign, and after you do, go back here and tell what error are you getting
[Galaxy S II Themes and Apps] kroz:
i always got an error compiling systemui, can you help me? :(

edit:

found a solution using ics apktool here

http://xdaforums.com/showthread.php?t=1558171

:)
[Galaxy S II Themes and Apps] sam5154:
Wow, thanks it worked. But why system apps don't need to be signed?
[Galaxy S II Themes and Apps] $wissdroid:
First: Great Job :-)

Second 2 Questions.

Is it not easyer to editing in .java (with dex2jar tool) then in smali?

For beginners is it not a little bit easyer to use "Apk One Click" for de- and recompile .apk (include the dex2jar Tool) ?
[Galaxy S II Themes and Apps] marcellocord:
They can still work.

Thanks. When you decompile, it will turn a lot of files into .smali files. Those smali files are very easy to modify on Notepad++. But I'm going to study more about dex2jar.
[Galaxy S II Themes and Apps] $wissdroid:
I had write before a Month or Two, A decompile Tutorial for German Users:

When you need some Pictures for your Tutorial, you Can find it: Here
[Galaxy S II Themes and Apps] linoO:
thank you marcellocord

it works very well.

good job
[Sprint HTC EVO 4G LTE] Mr.Miyagi555:
Is there a way to get the listed txt version of the bookmarks widget ? I think its cleaner and shows faster then the thumbnail bookmark widget .

If there is a solution please help a noob out
[Sprint HTC EVO 4G LTE] Mr.Miyagi555:
Anyone ?
[Sprint HTC EVO 4G LTE] wisper2000:
My ? is if you dont want google wallet or use it. Is it alright to just delete it.
[Sprint HTC EVO 4G LTE] neopolotin75:
Id just make sure to reset it before you delete it
[Sprint HTC EVO 4G LTE] grayn0de:
Yes. It's downloadable again from the market, if you ever change your mind. As neopolotin75 noted, though, just make sure to reset if you already activated it.
[Sprint HTC EVO 4G LTE] wisper2000:
Thanks guys. :good:
[Desire Q&A, Help & Troubleshooting] BarnOwl:
I am stuck on my Desire: I have no telephone connection anymore.

I am on S-Off Data++ with BCM RC4.0.

I really want to know the best way to get the phone back to stock but I do not know how as I have no USB connection.

If I sent it to HTC they want a stock phone.

Suggestions much appreciated!
[Desire Q&A, Help & Troubleshooting] Coempi:
Check the development section for USB brick fix. You'll find the description there.

Best regards Coempi
[Desire Q&A, Help & Troubleshooting] BarnOwl:
I am just looking for a way to flash a stock rom to the device. This is the first time I am stuck with a smartphone since 2002!

I do not want to do a usb de-bricking method as I am going to sent it in. But I doubt they will give me any service if I bring a modified Desire in.
[Desire Q&A, Help & Troubleshooting] Coempi:
In order to use the USB you have to fix the USB brick. After that you can flash a custom recovery, a stock rom, whatever you want.
[Desire Q&A, Help & Troubleshooting] BarnOwl:
So you're saying there is no way to achieve this otherwise? I thought maybe there is a stock rom that can be applied through the sd card.....

I'll try that USB brick anyway, thanks!

Funny thing is: Yesterday I lost my G2/G3 connection, then I started to get another rom because I thought it had something to do with that and then my USB went completely dead. HTC said it probably is a "software" problem.
[Desire Q&A, Help & Troubleshooting] Coempi:
When you cannot access your phone via USB, that's called a USB brick, so give the fix a go.

Best regards Coempi
[Desire Q&A, Help & Troubleshooting] BarnOwl:
Help....really stuck now!

Ok, guys, here's the deal:

Somehow HTC decided I had voided my warranty as I said I had downloaded the REGULAR updates from their site.........(????) So now I am stuck with a bricked Desire.

I have downloaded the Alpharev downgrade boot and I have a 2.33 Android RUU on it. Version 3.14.405.1. The 5.17.05.23 radio is on there as well.

If I boot in Hboot I see the following:

BRAVO PVT3 SHIP S-ON

HBOOT-1.02.0001

MICROP-0514

TOUCH PANEL-SYNTH0101

RADIO 5.17.05.23

Jul 22 2011.16.19.16

That's what I got from the Alpharev s-off site (downgrade hboot)

Charging via USB works. SD can be accessed (That's how I have been trying the last few days to get it back to normal via PB99IMG.zip.

But I really don't know how to get the USB functionality back and it doesn't recognise the fastboot drivers and so on.

I.m pretty sure it is not a hardware problem as I had the cables checked in a repair place.

Surely there must be a smart wizard out there that can help me?
[Desire Q&A, Help & Troubleshooting] colin_404:
AFAIK u have to be s-off to flash H-boot

and the ruu runs from your computer
[Desire Q&A, Help & Troubleshooting] BarnOwl:
I know that......but what H-boot do you want me to put on it?

If you extract the rom.zip from the ruu, you can also put it on the device by using the sd-update.

I also saw this recovery with build-in usb unbrick. But how to get it on the phone?
[Desire Q&A, Help & Troubleshooting] colin_404:
There is no point in putting any h-boot on the sd card

Rename the rom.zip to PB99IMG.zip
[Desire Q&A, Help & Troubleshooting] owennewo:
I'm fairly confident that your problem is to do with the RILs that were included as part of BCM 4.0. They tried including new RILs and it didn;t work for lots of people.

If you read the BCM home page it talks about this problem on the release notes

My 3G didn't work. I downloaded the RILs put them on my SD card. booted to recovery (I'm using 4EXT graphical user interface recovery) and then chose to install the old rills (it's just a zip file).

Really easy.

Alternative you could reflash BCM 4.1U2. I think you were just a bit unlucky!!
[Desire Q&A, Help & Troubleshooting] BarnOwl:
Ok, thanks.......I got a bit tired of this issue so I got a new device. But I still have the Desire and I will definitely give it a go, have not tried that one yet. I'll report back here!
[Samsung Galaxy Nexus] Ryands991:
Well... I installed Vicious V2 of the Jellybean ROM (toro), and things were running OK. I used titanium backup to try to restore my SMS data, and found that I could not boot back up. It just bootloops. Since then, I have tried mutliple things, but nothing ends it...

I've tried:

*Restoring a NANDroid, but /data will NOT restore, and phone will bootloop.

* factory Reset/reinstall old AOKP ROM. It will not boot.

*Reinstall Jellybean ROM. Still bootloops

*I'm working on trying to get ODIN to detect my phone, but my computer won't stop detecting it as "Samsung ADB Interface". I've verified there is no response from ADB while in ODIN mode on the phone.

I just... can't stop the bootloops. There is another thread of the same issue, but his resolved over time. Mine doens't seem to be... I really want my phone to boot. :( The interesting thing is that none of my Nandroids will restore "Data". It just says "Completed in 0 seconds"
[Samsung Galaxy Nexus] curti.nogg:
Are you able to use fastboot?

Sent from my Captivate
[Samsung Galaxy Nexus] Ryands991:
Yes.

Speaking of fastboot, I can re-flash my recovery just fine. I've tried everything on both Clockwork, and TWRP. Results are the exact same.
[Samsung Galaxy Nexus] scubasteve101:
Same thing

Mine did the exact same after installing the same ROM after a TiBu restore (no system apps, no sms just regular apps with data). I tried wiping/reflashing several ROMs I had on the SD to no avail, all my nandroids would fail to restore data. I finally ended up using the Odin method I found to flash it back to stock 4.0.2 unrooted, unlocked. I lost all of my data on the SD card in the process.

I loved JB and would like to install again if I could find out what I did wrong to avoid this mess, any input guys?
[Samsung Galaxy Nexus] Ryands991:
Just a note: In recovery you have access to ADB. You can backup your SDcard with the command "adb pull /data/media C:\SD_backup"

It will save to... C:\SD_backup

If you get a file not found then, "adb shell", then "mount data", then "Exit", then try the adb pull again.

I'll keep messing with drivers then to see if I can get ODIN to detect me.
[Samsung Galaxy Nexus] Ryands991:
I'm an idiot. ODIN was seeing my phone the whole time. I just forgot where it shows that the phone is connected. I'll try an ODIN in the morning. I'm backing up my SD right now. I need sleep.

Edit: Nevermind.. It doesn't see it while in Odin mode.. but does see it on and off while booting into recovery.

Edit 2: I found that it was indeed a driver error. Fixed. Now back to backing up my SD card that I accidentally interrupted. I'll report back my ODIN results after I wake up.
[Samsung Galaxy Nexus] bL33d:
my phone is doing the exact same thing :(
[Samsung Galaxy Nexus] Ryands991:
I was able to bring my phone back to life with ODIN restoring a 4.0.2 factory image.
[Atrix 4G Q&A, Help & Troubleshooting] Xehon91:
i've just flashed the beta 0.7.0,but the long press on back key doesn't kill apps(i've activated the option in settings menu).anyone have the same problem??
[Atrix 4G Q&A, Help & Troubleshooting] crossdayngai:
how to activate this function?
[Atrix 4G Q&A, Help & Troubleshooting] Xehon91:
Settings/developer options
[Atrix 4G Q&A, Help & Troubleshooting] Xehon91:
I've risolve this problem. if i press the back key more of 5 seconds the app is killed :)
[HTC Wildfire S] spit_fire:
I've got these minute scratches on the WFS screen, 5-6 of them. Each a bit smaller than a millimetre and quite faint. Yes, I know, should have got myself a screen protector and the cause is most likely my pocket.

So I was wondering if anyone had any good experiences getting rid of scratches on a touch-screen? Of the ones I've come across, Displex seem to have mixed reviews about it. And there are some who swear by removing scratches using toothpaste. So before I do anything crazy, was just looking forward to get a second opinion.

PS. I've also come across articles about using cerium oxide and Brasso but I doubt they're safe to use on a touch-screen.
[HTC Wildfire S] Thrawed:
You could just replace the digitizer.
[HTC Wildfire S] spit_fire:
Well, 30-odd quid and a lot of hard work doesn't seem right considering how minute the scuffs are. I can just as well live with it but yeah, getting rid of them or maybe making them less noticeable would be just great! :D
[HTC Wildfire S] joopdroid:
stitizz son,

What would happen if you place a screenprotector over the scratches?

I don't believe in polishing with tooth paste i used it before on a Nokia and i wasn't happy whith the result. But don't know if it was a glass screen.

I never use a phone, not for a day, whitout screenprotector i learned my lesson.

Joop
[HTC Wildfire S] spit_fire:
I wasn't too keen on the toothpaste thing either. But any product which may as well do the least bit something! It's sad, come to think about it, that there are so many such products in the market, and nobody's satisfied with their experience of it. I might well stick to applying a screen protector on top of the scuffs. Well, it'd atleast do a good job keeping future scuffs at bay if anything! Thanks though guys, appreciated.
[AT&T Samsung Galaxy Note I717] dafoxs:
While trying to do a Nandroid backup, I get a error stating, failure to back up boot image. What causes that and how do you fix it?
[AT&T Samsung Galaxy Note I717] rangercaptain:
Does our version of CWM have the 4 gig limit?

The reason I ask is because on another phone the nandroid backup fails if your internal SD card had too much saved to it.
[AT&T Samsung Galaxy Note I717] dafoxs:
That may the issue here.
[LG Optimus Black] niko34:
In build.prop modify or add this line.

I've tested all line i post and it's smoother.

Faster Scrolling

ro.max.fling_velocity=12000

ro.min.fling_velocity=8000

General Performance

Edit existing line,

dalvik.vm.heapsize=48m

windowsmgr.max_events_per_sec=150

Improve 3G

Edit existing line,

ro.ril.hsxpa=2

ro.ril.gprsclass=12

To save battery:

wifi.supplicant_scan_interval=180

pm.sleep_mode=1

ro.ril.disable.power.collapse=0

Increase overall touch responsiveness:

debug.performance.tuning=1

video.accelerate.hw=1

Better photo & video

ro.media.dec.jpeg.memcap=8000000

ro.media.enc.hprof.vid.bps=8000000

I update this post all the time i find another tweak.

If you have tweak post here and i update this thread.

Envoyé depuis mon LG Optimus Black avec Tapatalk
[LG Optimus Black] Duarte777:
Cool, good job, my rom already have first tweak i think :) I´ll try the second tweak and if it´s works i i´ll put into rom :)
[LG Optimus Black] Cedlad:
j'utilise Zeus 6.32n et c'est deja bien. merci pour ton poste, enfaite tu peux voir comment augmente le niveau de music ?. merci
[LG Optimus Black] REAPER1992:
in engish plz
[LG Optimus Black] Duarte777:
More tweaks:

To save battery:

wifi.supplicant_scan_interval=180

pm.sleep_mode=1

ro.ril.disable.power.collapse=0

Increase overall touch responsiveness:

debug.performance.tuning=1

video.accelerate.hw=1

I have many more... but are mine :P
[LG Optimus Black] niko34:
Thank and no problem for your tweak it's the secret of your rom ;)

Envoyé depuis mon LG Optimus Black avec Tapatalk
[LG Optimus Black] blatecktonik:
And the audio? Libs? Because in this Rom the audios is very slow!! Any solution?

Enviado desde mi LG-P970 usando Tapatalk
[LG Optimus Black] Duarte777:
Yes... replace libs by beats audio(or similar) libs and you will have good sound...
[LG Optimus Black] Tomatengelee:
For the faster scrolling-tweaks: do i have to add them manually?

edit: oh, yes :)
[LG Optimus Black] Mbah Oz:
allow me to learn in this forum...this is good things for us. just noob question, what recommended software or gadget to modify build.prop?
[LG Optimus Black] Duarte777:
Notepad ++
[LG Optimus Black] Mbah Oz:
thanks brother, so it open or modify in PC/laptop :good:
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] hom.hom:
I want to learn how to build my own android roms from the source up. So does anyone recommend any literature to read, tutorials to follow, things I need to understand.

I do have two minor preferences; I prefer to develop on Windows, is this possible? And I would like all the literature to be on the internet, so actuaally to be free available....

About me, you can say that I am a noob (I did build an android app with a group of people for school), but I am willing to learn. So does anyone know what are the first steps to take to become a succesful developer.

*Also could someone explain to me: Is there a difference between a regular/rom cooker developer and kernel developer. Do you need to be both to for example make jelly bean working on your phone singlehandedly or do you just need to be a rom cooker?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] azzledazzle:
Rom cookers are the sort of people that have all the required files and they just cook it up into a ROM, Developers are the sort that make things, Add things re-write things, then cook it up.

you will need to start by getting a stock ODIN ROM, and using the tools that can open it, As for these tools im unsure, The kernel is zImage << so you need to find a tool to read / edit that.

You will need to use linux, However you can use Cygwin (linux for windows) and you could try dsixda's rom kitchen,

You will also need 7zip and Notepad ++ , These are just a few of many stuff you will need :)

Here are a few guides to get you started

http://xdaforums.com/showthread.php?t=633246

http://www.xda-developers.com/android/learn-to-build-kernels-and-roms-for-the-galaxy-s-ii/

http://xdaforums.com/showthread.php?t=1069868

Everything you need to know will be on XDA somewhere :)

Good luck !!

PS: Make regular backups during development, You first aim should be to get a Stock ODIN ROM converted to a CWM zip file and get it booting, Then start to make tweaks / mods / themes :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] p107r0:
Good luck, and read this as a word of caution: http://xdaforums.com/showthread.php?t=1690663
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] hom.hom:
A question: how do you extract the boot.img from the SGN? I have already tried this with dsixda's kitchen and CM9, but all I get is the error; "Android Magic not found in ./boot.img". So what are the exact steps to follow for the SGN to extract the boot.img?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] AlexProfesor:
I also have a pice of advice. Get a cheaper android phone to play with (which you don't mind breaking). Emulators are great, but there's nothing like the real thing.

PS: For some reason, the image of Guybrush Treepwood saying "I want to be a pirate" came to my mind...
[General Questions and Answers] antyhero:
My Phone: HTC Ozone (WM 6.1 Smartphone)

Wi-Fi status: Connect to the Network, but Internet Application(Opera, Explorer, ICQ, ProfiMail) not connect to the internet.

What this a problem ??? Who can help me ???
[General Questions and Answers] android addicts:
Your WiFi network as an internet connection? Is it publish or private network? :confused:
[Galaxy 3 General] raja4sure:
Hey you guys.....

I don't know if you guys know about this info or not..but still i am sharing this info for the ones those are not aware of this..

The XDA Portal has finally rolled out their testing phase of 2013 theme of the portal....

It Has many New Features......

Check those in the original thread by svetius.......Click Here

How to Enable it :

scroll down to the bottom of the page.....

check the left most side.....

You will see a "style chooser" tab window saying "--XDA 2010" just change it to XDA 2013 Beta.....

Reload & Enjoy....;)
[Galaxy 3 General] tadeas482:
Its great! I have been using it ever since it launched and so many bugs have been improved!
[Galaxy 3 General] djtrex:
nice portal theme guys. good work.
[Sprint Samsung Galaxy S III] mayhemer:
In the Samsung Galaxy S3 Stock ROM NFC does not work when screen is off or locked. With this mod NFC also works when screen is locked or off.

There are two versions. The first just enables NFC, when screen is on, but it also worked when it is locked. Also with a PIN or Password-Lock everything is fine. But it disables NFC when the SGS3 is in standby and the screen is off.

The second version let NFC active all the time, even when the SGS3 is in standby and the screen is off.

Nothing else is changed in the behaviour of the NFC.

There are also two zips to go back to stock NFC, one is odexed and one deodexed. Use them only with the right firmware version (for example VPALEN).

All ZIPs have to be flashed with CWM. You should wipe Dalvik cache after flashing.

This mod works for at least for the firmware SPH-L710_VPALEN. This mod does not work with LFB now. I will provide an updated Mod in the middle of August because I am at vacation now.

Please give me feedback, because I do not own this device and I cannot test the Mod on it! I just ported my MOD for the international S3 to the L710.

Disclaimer: As always, I hereby absolve myself of responsibility for any damage you cause to your phone by flashing this. There is inherent risk in modding your device, and by flashing anything in this thread you are taking that risk into your own hands. If something goes wrong, I will try and help. You should always make a Nandroid Backup before flashing.

To ROM Devs: You are more than welcome to use this in your ROMs! Just shoot me a little bit of credit in your release post!

Thank you: Geniusdog254 for the idea and the infos in your thread.

Here ist the link to the thread for the international S3 version:

http://xdaforums.com/showthread.php?t=1712024
[Sprint Samsung Galaxy S III] teh roxxorz:
That's great. Asking just for the sake of asking, but in the future, would there potentially be an undo zip?
[Sprint Samsung Galaxy S III] mayhemer:
Of cause I can create one. Just need a few minutes time ;)

[tapatalk]Vom S3 mit Tapatalk[/tapatalk]
[Sprint Samsung Galaxy S III] stu5797:
Thanks for this wonderful mod and using your time to bring it to our sprint versions! Are there any known side effects?
[Sprint Samsung Galaxy S III] mayhemer:
No side effects are known yet.

[tapatalk]Vom S3 mit Tapatalk[/tapatalk]