yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] vesper7dd:
As user when you buy an app you dont pay any taxes, as developer from the money that the user pay you get an amount around 80% and the other 20% goes to google, but its on your country's laws if you must pay taxes for that money and how much.

Send from my tropical island using message in a bottle :p
[HTC Sensation] henrik.dk:
thanks man. Will give it a try.
[HTC Sensation] kefallo:
This thread must be bumped immediately :)
[HTC Sensation] denverpedro:
OK, so I'm new to any sort of development on Android and I'm WAY out of date on any sort of development at all. That being said I've been flashing custom ROMs on my android devices since day-1 several years ago.

Quick question; in many of the AOSP (senseless) ROM's the phone.apk doesn't mute correctly, it shows the status change to muted but the microphone doesn't actually mute). Is this something that might be fixable by decompiling the APK, making a change and re-compiling it? Or would the mute functionality be outside the Phone.apk possibly?
[HTC Sensation] VivaLaPascal:
Thanks! This should be a stickie
[HTC Sensation] memnoc:
Pretty hard to say, logcat is the best friend ever in this case

Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
[HTC Sensation] TUN_SD:
thats a nice tool, but i still have those

<item type="drawable" name="APKTOOL_DUMMY_02b3">false</item>
<item type="drawable" name="APKTOOL_DUMMY_0571">false</item>

lines in the xml files.

I´m trying to de/compile a ICS framework.res, til now without success.
[HTC Sensation] henrik.dk:
Could there be a real example e.g.: change an apk file to get transparent status bar? thanks.
[HTC Sensation] memnoc:
Try to delete that line

Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
[HTC Sensation] TUN_SD:
No success. Tried it

There is something wrong with apk tool or my system, but its up to date. With gb apk I never had any problems.

send with ice cold fingers
[HTC Sensation] memnoc:
I decompiled a lot of ics framework both aosp and Sense so yep, something is wrong but not in the tool, or you are deleting the wrong line or u are faulting some step from the guide..

Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
[HTC Sensation] Swiftks:
Great guide... However, I am running into the same wall that I always to when I try and re-compile the ICS Systemui.apk from my Asus Transformer Prime. I get a aapt.exe crash, followed by the following error:

C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

I made no changes to the systemui, I simply decompiled it (which worked fine) and then recompiled it.

Yes, I did apktool install the framework from the same system, before hand.

I have gotten this error everytime on the systemui, no matter which guide or apktool version I use. The framework-res works without a hitch, but the damn systemui is a ***** that has no mercy! :eek:

Thank you for any help you can throw my way. Me and a few others on the Prime thread are trying to get a % battery mod done for the Prime, but we need to be able to recompile the SystemUI.apk first.

- Thanks
[HTC Sensation] TUN_SD:
uups, I´m sorry, I don´t mean YOUR tool, I mean the apk tool, apktool.jar.

your tool is only the gui and that is fine, as I say before!

I can delete what I want. apktool.jar is compiling with errors so there are bootloops, no matter what i do!
[HTC Sensation] Stephen:
Same result:

Trying to deompile Robo's ICS file and getting error. I selected option 81 to install aditional framework file and added com.htc.rescources.apk then decompiled and got the errors.
[HTC Sensation] voldomart13:
I am getting errors trying to recompile systemui heres the log.

[*] C:\Users\tim\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI

recompiling C:\Users\tim\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:142)

at brut.androlib.Androlib.build(Androlib.java:159)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:138)

... 4 more
[HTC Sensation] Swiftks:
Hate to bump, but if anyone can figure out what's up with the systemui, it would be greatly appreciated. Is apktool just not updated to handle it?
[HTC Sensation] NODO-GT:
any new versions? fixes?
[HTC Sensation] LeeDroid:
You could just extract apktool.jar and replace smali / baksmali with the latest versions.. works perfectly

Sent from my SuperSensational ICS LeeDrOiD loaded Beast
[HTC Sensation] id242:
As a followup to LeeDroid's reply, here's the link to the smali/backsmali project page...

http://code.google.com/p/smali/
[HTC Sensation] memnoc:
Good advice, sometimes you need to play with aapt, i stated 1.4.3 in op cause it's the most succesful for me, but sure you can change it very easily, thx lee

Inviato dal mio HTC EVO 3D X515m usando Tapatalk
[HTC Sensation] Stephen:
Can anybody release a new version with the edited updated smali tools. I extracted the jar file but cant find the smali files to replace. Id suggest using this version to mod as it has the magic numbers edited for 4.03 but because of the outdated smali files.
[HTC Sensation] akamustang:
Not sure how LeeDroid got it fully working because yesterday I compiled apktool from source with updated smali 1.3.2 modded to apktool requirements. However apktool is itself not ICS ready, missing config flags still exist.

Swyped from my HTC Sensation
[HTC Sensation] hansbert:
Try this one, for me it's working :-)
[HTC Sensation] Stephen:
Cheers did you edit mine? It has the magic numbers set for ICS :) Just needs samli files updated!!
[HTC Sensation] hansbert:
Here you go, tell me fi it's working ;-)
[HTC Sensation] Stephen:
Using Apkmanager 5.02 not working still getting same errors.

I wonder if the android-framework.jar file needs to be updated to ICS 4.03 as well for it to work?
[HTC Sensation] hansbert:
I used to get this errors : "Invalid config flags detected: ..."

But since I use new Smali/Baksmali in apktool I don't get any errors when decompiling/compiling SystemUI.apk for example (ARHD 6.5.0) with framework-res.apk and com.htc.resources.apk installed.

But I don't use apkmanager, I only have aapt.exe, apktool.bat and apktool.jar and use it in cmd. (apktool d ...)
[HTC Sensation] Stephen:
Cool will try it with command line to see if it is any better. Apktool seems to call the functions differently.
[HTC Sensation] Rainbowbright081:
I too am able to decompile the systemui.apk from Elegancia 3.3.5, but cannot compile it for the life of me... and i have tried so many things i feel like i need to delete everything and start again, hopefully maybe ill get better results

---------- Post added at 04:48 PM ---------- Previous post was at 04:47 PM ----------

[*] C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI

recompiling C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI...

I: Smaling...

I: Building resources...

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/drawable-sw600dp-hdpi

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/layout-sw600dp

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw320dp-hdpi

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw360dp-hdpi

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw600dp

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw600dp-port

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw720dp

invalid resource directory name: C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res/values-sw720dp-port

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Bristol\AppData\Local\Temp\APKTOOL1686804402394859370.tmp, -I, C:\Users\Bristol\apktool\framework\1.apk, -I, C:\Users\Bristol\apktool\framework\2.apk, -S, C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res, -M, C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Bristol\AppData\Local\Temp\APKTOOL1686804402394859370.tmp, -I, C:\Users\Bristol\apktool\framework\1.apk, -I, C:\Users\Bristol\apktool\framework\2.apk, -S, C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\res, -M, C:\Users\Bristol\Downloads\AutoAPKTool2.0.3d\_INPUT_APK\SystemUI\AndroidManifest.xml]

at brut.util.OS.exec(OS.java:83)

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)

... 6 more

The system cannot find the drive specified.

my errors
[HTC Sensation] Rainbowbright081:
Seriously, I know I'm not the only themer out here that has encountered this problem. just one of the few stuck by it.

Could any of the seasoned themershelp me out?
[HTC Sensation] memnoc:
Mate it seems you changed some path before recompile..

Inviato dal mio HTC Sensation Z710e usando Tapatalk
[HTC Sensation] Rainbowbright081:
Maybe you could guide me to where my problem might be?
[HTC Sensation] Habarug:
Hi! I'm trying to decompile SystemUI from this rom, but after decompiling there is only a smali folder there, no dist or res :/ Here is the log, i get same thing with APK multi-tool as well

[*] C:\Users\havbar\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\havbar\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
at brut.androlib.Androlib.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.getResTable(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

Also attached the apk. I only need the files in there, not to compile it back so if any1 who doesn't get error could make the res folder a zip and upload it for me, I would be grateful :)
[HTC Sensation] Gomi94:
I wanted to try it out but the download link isn't working.
[HTC Sensation] Jonny:
Try the new apktool_smali_baksmali file found a couple of pages ago, worked for me :)
[HTC Sensation] Habarug:
Oh, I already fixed it ;-) but thanks anyway
[HTC Sensation] kmmxracer:
here ya go.

http://htcfanboys.com/download/xavierjohn22/?action=view&file=596
[HTC Sensation] Stephen:
For some reason I am trying to build my framework-res.apk from my 3.32.401.5_r rom. Each time I build it, it failes. I then took the framework-res.apk file and used UOT kitchen to add a battery mod, then decided to try decompile / compile and it worked.

Any idea why the orgional framework-res.apk wont compile but the modded one from UOT kitchen does?
[HTC Sensation] hunti:
i tried step by step but i am having a problem with No 7 recompiling.i used no 7 to recompile and there no dist folder and no apk.no error was shown in the process.i would appreciate any help
[HTC Sensation] hunti:
i have tried as explained but i cannot compile framework-res back to an apk i can compile contact back

can any one help
[HTC Sensation] spodie:
The tool from the link has been removed...

Could someone mirror for me? Dropbox whatever.... thanks
[HTC Sensation] memnoc:
I'll reupload ASAP

Inviato dal mio HTC Sensation XE with Beats Audio Z715e con Tapatalk 2
[HTC Sensation] spodie:
Thank you......
[HTC Sensation] Jonny:
Its on my FTP here

Look in the Dev Tools folder - cant link it properly now - from phone :/
[Xperia Play Themes and Apps] maccboy2010:
Here's a website all for experia phone games n news. Enjoy

http://www.xperiagamer.com/
[Xperia Play Themes and Apps] mehdi.moha:
we all know that before :)

bu totally thanks
[Xperia Play Themes and Apps] maccboy2010:
Cheers I didn't no about it lol. :-D
[Kindle Fire Android Development] ST3P_2:
KindleWater v3.0

KindleWater is now a part of BreakDroid all in one tool. I am also slowly backing off of Kindle development because of the Nexus 7

The new version is bundled as a part of BreakDroid (A multi device rooting app). Just download breakdroid from the download link below and you're good to go!

Downloads:

Download the newest version of BreakDroid from BreakDroid's website northmendo.com/breakdroid

Credits:

ST3P_2 (Me) writing the UI and some of the scripts, and slimming the SDK to the essentials

northmendo (co author) for writing the scripts and hosting the website

pokey9000 for fastboot

Team Win for TWRP recovery

Common fixes:

Try opening up terminal on your Mac and typing "adb devices" without the quotes. It should list a number like 29491656. If it doesn't the app isn't going to work.

Try opening terminal and typing "adb kill-server". Then try the adb devices trick above, it should now list a number.

Try restarting your Mac and kindle

Try rerunning KindleWater.

Changelog:

0.6.4 Changed recovery to TWRP and changed boot loader to the new FireFireFire 1.4a!

0.6.2 Became a part of BreakDroid with the 6.3 root

2.1.8 Added instructions for flashing your first ROM

2.1.7 Changed some command timing

2.1.6 Sorted out some su access problems

2.1.3 Fixed some bugs

2.1.2 Improvements to the rooting script

2.1.1 Added the new CWM recovery that doesn't have to be downloaded! 2.1.1= 100% automatic

2.1.0 Fixed some problems with ADB and added a cleaner app to remove older versions of ADB

2.0.0 (first version co authored by northmendo) Basically rewrote everything to automate everything except recovery download (we can't get permission from its author)

1.1.0 Changed some code to speed things up, fixed a misspelling, and rewrote some parts of the tutorial to make things more understandable

1.0.1 Fixed some things requested by northmendo, the creator of the USB.ini installer and ADB installer scripts

1.0.0 Created the application (duh)

To boot into recovery: Shut the kindle off, turn it on, when it shows the triangle with a fire hold the power button until the light behind the power button turns orange then release it. Wait a second and voila! There's recovery!

Follow me on twitter! @ST3P_2

Please hit the thanks button (and possibly donate) if you like!

We aren't responsible if this bricks your kindle. There is a 1% chance it could although it's very unlikely. I am still willing to help if you have questions.
[Kindle Fire Android Development] ST3P_2:
I'm devoting this post to instructions and extras now...

Instructions:

To boot into recovery: Shut the kindle off, turn it on, when it shows the triangle with a fire hold the power button until the light behind the power button turns orange then release it. Wait a second and voila! There's recovery!

How to install a custom rom with TWRP recovery:

Needed:

Rooted Kindle Fire*

TWRP recovery

A ROM to flash (It will show up as a .zip file)

Instructions:

1. boot in to recovery by holding the power button until it turns from green to orange at boot up

2. select backup/restore

3. backup then return to the main menu

4. select wipe, then factory reset

5. return to the menu and select install

6. locate the file, touch it, then select flash

How to install a custom rom with clockworkmod touch recovery:

Needed:

Rooted Kindle Fire*

Clockworkmod touch recovery

A ROM to flash (It will show up as a .zip file)

Instructions:

1. boot in to recovery by holding the power button until it turns from green to orange at boot up

2. arrow down to backup and restore, select backup and let it do its thing, then go back to the main recovery menu

3. arrow to wipe cache partition and select it once finished continue on*

4.*arrow to factory reset and select it*once finished continue on*

5. select install zip from sdcard, then select choose zip from sdcard

6. arrow to the folder you put the ROM in and select it (if you downloaded the ROM from your kindle's web browser it will be in the "Download" folder)

7. once it is done go to the main menu, select power off, then turn it on with the power button and you should be good to go!*

The first boot up will take a while because the system is getting everything set up
[Kindle Fire Android Development] jcase:
If you would like to get together with me, we can stream line this a lot, however im just getting to know xcode now so..
[Kindle Fire Android Development] northmendo:
ST3P_2 and I have decided to team up and do just that. He knows xcode and is going to put together the ui. I have the adb scripts and would like to make one to download and install burritoroot. It would be awesome if you would allow us to include it and help in the process.

Are you both on G+ would that be a good place to collaborate along with gtalk?
[Kindle Fire Android Development] smirkis:
all 3 of you should team up :-)
[Kindle Fire Android Development] northmendo:
Here's hoping. If we are all 3 on board I think we can fully automate the precess.
[Kindle Fire Android Development] ST3P_2:
I bet we can have it perfected in under a week.
[Kindle Fire Android Development] jcase:
It should be easy, burritoroot can flash recovery and fff now, and we don't have to install adb on osx.

Irc would be best for me
[Kindle Fire Android Development] northmendo:
Lets try that tomorrow.

You wanna use your http://chat.andirc.net:9090/?channels=#thunderbolt ?
[Kindle Fire Android Development] ST3P_2:
Why don't we just use google talk?
[Kindle Fire Android Development] northmendo:
That will be better for me. Lets meet up at 12 pst.
[Kindle Fire Android Development] NirmK96:
Great Work

Hey just wanted to tell you that this program is wonderful, no longer need to pull out command line for rooting:)
[Kindle Fire Android Development] ST3P_2:
Thanks man! Northmendo and I have made quite a bit of progress on the new, totally remade app. It'll make this even easier so that nothing is done manually!
[Kindle Fire Android Development] northmendo:
Website

Until ST3P_2 gets around to adding it to the top post. Here is a link to the website for the app.

WEBSITE
[Kindle Fire Android Development] ST3P_2:
Hey everyone! If you have questions or problems, email me! Stevepink8@gmail.com . Also, if you want post your results! We need more people to back us up on how easy this tool is. If it works don't be afraid to share your results!
[Kindle Fire Android Development] DjRashonal:
Just wanted to say thanks to these guys for the work they did! And a special thanks to STE3P_2 for helping me troubleshoot after a random help email!

Got everything working up and running and can confirm that it does work on 6.2.1 as well.

I had to Kill and restart the adb server to get the kindle to be recognized, but after that I was smooth sailing!

Thanks again!
[Kindle Fire Android Development] thacoolestnerd:
I ran the root successfully but how do I get the recovery installed correctly on mac? The website just says download it and rename it but there are no instructions on actually installing the recovery.....

Can you help with this?

Thanks

---------- Post added at 07:34 PM ---------- Previous post was at 07:07 PM ----------

This root for me is useless because there are no instructions on how to install the recovery to flash a different rom all the website says it download this and rename it....no detailed instructions
[Kindle Fire Android Development] ST3P_2:
To install the recovery after you're already rooted just follow the instructions for installing TWRP here.
[Kindle Fire Android Development] ST3P_2:
If you were having trouble with the kindle not rebooting after installing ADB, download and run the ADB fixer for 2.0.0 and run it. Then you can run the "2. Root" from the main menu and it should work!
[Kindle Fire Android Development] thacoolestnerd:
Big Big thanks to Steven for all of his help and advice! Great program Great support!!!
[Kindle Fire Android Development] Stage:
This worked incredibly well! Great Work!
[Kindle Fire Android Development] northmendo:
Thanks, We are trying hard to make it as easy and painless as possible.
[Kindle Fire Android Development] ST3P_2:
Currently we are not working on the utility much and devoting our time to finding a recovery that we can include with the download so you don't have to download anything or do anything. I contacted team win (authors of TWRP) but they were a dead end street. They want the download directly from them because they have ads on their website to help pay for their website (which is understandable).
[Kindle Fire Android Development] smirkis:
add my newly compiled cwm in my gscript thread.
[Kindle Fire Android Development] northmendo:
We'll take you up on that. Thanks. I will include it and upload KindleWater 2.1.1 tonight.
[Kindle Fire Android Development] ST3P_2:
Sorry if any of you guys were having problems! We realized we messed some things up in 2.1.2, so try the new 2.1.3
[Kindle Fire Android Development] northmendo:
Version 2.1.5 is in the downloads section of the website. All the issues should be fixed. Sorry for the bugs.
[Kindle Fire Android Development] ST3P_2:
I think you mean version 2.1.6 but I don't think it matters. I believe that they're almost the same.
[Kindle Fire Android Development] northmendo:
Right you are. 2.1.6