yashsingh1/xdaforums huggingface dataset:
[Android Software Development] raziel23x:
That way is overly complicated there is a way easier way

cd C:\openssl\Bin
set RANDFILE=.rnd
openssl genrsa -out key.x509.pem 2048
openssl req -new -key key.x509.pem -config “C:\OpenSSL\ssl\openssl.cnf” -out request.pem
openssl x509 -req -days 99999 -in request.pem -signkey key.x509.pem -out certificate.pem
openssl pkcs8 -topk8 -outform DER -in key.x509.pem -inform PEM -out key.pk8 -nocrypt

this will generate a key used for signing with a modified signer script which I use besides the one in the application as with this signing method requires a modifications from the

signer.bat

@echo off
if (%1)==(1) goto next
if (%1)==(2) goto log
COLOR 0A
echo Signing "%~n1"
java -Xmx%heapy%m -jar signapk.jar -w testkey.x509.pem testkey.pk8 "../place-apk-here-for-signing/%~n1%~x1" "../place-apk-here-for-signing/signed.apk"
del /S /Q "../place-apk-here-for-signing/%~n1%~x1" > nul
ren "../place-apk-here-for-signing/signed.apk" "%~n1%~x1"
goto quit
:next
COLOR 0C
cd ..
type log.txt
PAUSE
goto quit
:log
mode con:cols=24 lines=2
echo Leave this open for 10s
adb logcat >> adblog.txt
:quit
[Android Software Development] Papa Smurf151:
U r correct but in my case I sign with my private keys to go into the market so when I make updates the key name can't be random or the market will not take it.
[Android Software Development] raziel23x:
Well the script above was just a example script there will be some changes to it to tie the keys to the applications so that when you sign the apk files they will have a key assigned to them
[Android Software Development] Papa Smurf151:
Sounds great to me I can't wait
[Android Software Development] ForeverSupra:
I am getting this error, can anyone help?

I have my paths set up like this.

If you can PM, perfect!
[Android Software Development] llohcyoing:
work on gnu/linux?
[Android Software Development] $omator:
great to hear but afaik apktool revision you use still got no latest baksmali/smali updated - am i correct ?
[Android Software Development] raziel23x:
I am using the latest Versions from https://github.com/brutall/brut.apktool

using these instructions

http://code.google.com/p/android-apktool/wiki/BuildApktool?tm=4
[Android Software Development] $omator:
ass you see latest update is from may while:

8-22-11 smali/baksmali v1.2.8 is out. This fixes a problematic bug that crept into 1.2.7

8-13-11 smali/baksmali v1.2.7 is out. This is a bugfix release, with a small additional feature (helper comments for synthetic access methods)

i think those 2 updates are not merged
[Android Software Development] raziel23x:
I am currently Forked all of Brut.all's Repositories into my github account that i setup for APK Multi-Tools.

I am currently looking over his code and making changes updating the Smali Code used with the APKtool updating it to the most updated version off of http://code.google.com/p/smali/ and hopefully I will have a more updated Alternative version of apktool

This thread here is more along the lines of for Development purposes and coding suggestions

For Releases and bug reports Visit this post

[Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool
[Android Software Development] Rick S:
First off, awesome job, thanks for this...I have one quick question... everytime I had ever gotten errors with this or even the apk manager 5.0.2 it was the same situation. I would, for example, be trying to decompile mms.apk and errors would occur. What solved this was to place my framework-res.apk in C:\Documents and Settings\Owner. This is where the apktool\ framework folder is located. I then had to open a command prompt and type apktool if framework-res.apk. That would place a 1.apk file in apktool\framework. Then using this or apk manager 5.0.2 would work flawlessly without errors. Is there any way to skip all that and create that 1.apk file using your setup before I decompile an app? I thought decompiling with dependency file would do it, but it always says that is not a dependee file. Any thoughts... sorry for the long post and thanks again.
[Android Software Development] raziel23x:
I guess I could add a script to do a adb pull of the fw-res from your phone and install it from that
[Android Software Development] baseballfanz:
Script.bat close after making any selections (Same as APKManager 5.0.2)

any help?

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
At was unexpected at this time.
[Android Software Development] waterpolo:
Do you have spaces ' ' in your .apk name?
[Android Software Development] baseballfanz:
Yeah that was it, thanks.
[Android Software Development] raziel23x:
Well I gotten a copy of the original roptipng src and I am working on making a patch from that source with the original optippng src that was used and will perhaps modify the patch once created to intergrate into the new 6.5 src

I am hoping this will prove to be a success so that I will not have to do some extra steps and also if the patching once complete and successful should also help with updating roptipng in the future
[Android Software Development] AndroidGraphix:
Looks promising, thanks.
[Android Software Development] raziel23x:
I am working on a custom version of apktool.

Hopefuly once I compile the jar file after updating the library files to apktool I should have most of the errors fixed from everyones java error reports from trying to decompile the latest apk files.

A few of the library files used to compile apktool are outdated and cannot handle the changes to the android code.
[Android Software Development] raziel23x:
The issue is you need to run your xxx.9.png files with the 9patch android sdk toolkit as it seems you modded the images or they was not patched correctly which caused the error
[Android Software Development] raziel23x:
http://android10.org/index.php/articlesother/279-draw-9-patch-tutorial
[Android Software Development] 4D3:
I have no idea what that is...i have never even heard of it! i guess it would be a case of opening the png in that app and just resaving them?

what about all of the

ERROR: Failure processing PNG image C:\Users\cmbennetts\Desktop\Apk_Multi-Tool\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_gray.9.png
libpng error: Read Error

thanks
[Android Software Development] raziel23x:
Just run it for the ones that are9.png showing up in the error log
[Android Software Development] 4D3:
I think im being dumb...I cant find the 9patcher app anywhere..is it an application i can install or something different?
[Android Software Development] zelendel:
It is in the android sdk.
[Android Software Development] Habarug:
Aaah, so i need the sdk to use this? That explains why everything fails all the time :P
[Android Software Development] 4D3:
no...i need to use the sdk to create 9patch files...although i have no idea how to do that!!
[Android Software Development] Habarug:
Hmm, any idea why this happens then? I'm trying to modify some xmls in the framework_res.apk. Decompiling and editing goes without problems. But when I compile: If I select to copy over the files i didn't edit, delete the resources thingy (sry, don't remember the name, u'll understand :) ) and the files i edited from the keep folder first, the files i edited don't show up in the framework_res.apk. They're just disappeared. If i choose NOT to copy over the files i didn't edit, the whole res folder dissapears... Anyone know why? Thanks in advance =)

Edit: oh, and o use widows 7:-)

sent with love from me to you
[Android Software Development] raziel23x:
Well right now 9patch requires the sdk but the next alpha release will have 9patch intergrated which will allow faster editing and less requirements as I aM working on making this application as self contained as possible
[Android Software Development] Habarug:
Suddenly, out of nowhere, it doesn't recognize Java. When I open script it says Java not found, even though I have it installed (JDK).

Log:

--------------------------------------------------------------------------
|29.10.2011 -- 11:38:47,14|
--------------------------------------------------------------------------
mode gjenkjennes ikke som en intern eller ekstern kommando,
kj›rbart program eller satsvis fil.
java gjenkjennes ikke som en intern eller ekstern kommando,
kj›rbart program eller satsvis fil.

Edit: Managed to correct my PATH so now i think it works :)
[Android Software Development] Reaperex:
--------------------------------------------------------------------------

java version "1.6.0_27"

Java(TM) SE Runtime Environment (build 1.6.0_27-b07)

Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)

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

|Thu 12/29/2011 -- 20:19:54.57|

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

java version "1.6.0_30"

Java(TM) SE Runtime Environment (build 1.6.0_30-b12)

Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)

Riders was unexpected at this time.

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

|Thu 12/29/2011 -- 20:38:31.18|

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

java version "1.6.0_30"

Java(TM) SE Runtime Environment (build 1.6.0_30-b12)

Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)

Riders was unexpected at this time.

what seems to be the problem, i can open the script but when i try to decompile this log happens and closes the script. pls help
[Android Software Development] rististien:
tutorial????

So I downloaded this and figured out on my own how to decompile and edit files but I have no idea what to do next. I put the decompiled folder in every folder in apk tool, and run the script, go to assign project and there's no options. What am I supposed to do next and why can't I find a simple how to? :(
[Android Software Development] Perka:
Well this tool is for what you have done, so good job.

As for moding, well, look in themes section or dev section.

Maybe adding removing menus?

Colour changes?

New Icons?

Look at some of my threads, maybe you can find something to mod ;-)

---------- Post added at 09:08 AM ---------- Previous post was at 08:53 AM ----------

Just read again, maybe you meant...

You need to compile the apk. ??
[Android Software Development] rististien:
yes, need to compile :) I have the decompiled apk and need to compile it but can't figure out what folder to put it in to do so.
[Android Software Development] Perka:
Well you get the decompiled apk in /projects, then mod, then use 11 to compile.

No need to move the folder.

So short.

9

Mod

11
[Android Software Development] rististien:
tried to do so, it asks to set the project, I hit 25 but there's no apk there????
[Android Software Development] Perka:
sure, but no need to set again as you must have set it when decompiling.

so

25 (dont close apk_tool)

9

mod

11
[Android Software Development] Southern_mind:
Hey After i decompile the apk and edit xml to change font color save the edit with note++ and try to compile i get an errror

The system cannot find the path specified.

The system cannot find the path specified.

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\nativi\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Loading resource table from file: C:\Users\nativi\apktool\framework\2.apk

I: Loaded.

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce

ption: could not exec command: [aapt, p, -F, C:\Users\nativi\AppData\Local\Temp\

APKTOOL560134926403721171.tmp, -I, C:\Users\nativi\apktool\framework\1.apk, -I,

C:\Users\nativi\apktool\framework\2.apk, -S, C:\Users\nativi\Desktop\APK Multi-T

ool\projects\DoSystemUI.apk\res, -M, C:\Users\nativi\Desktop\APK Multi-Tool\proj

ects\DoSystemUI.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a: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:\U

sers\nativi\AppData\Local\Temp\APKTOOL560134926403721171.tmp, -I, C:\Users\nativ

i\apktool\framework\1.apk, -I, C:\Users\nativi\apktool\framework\2.apk, -S, C:\U

sers\nativi\Desktop\APK Multi-Tool\projects\DoSystemUI.apk\res, -M, C:\Users\nat

ivi\Desktop\APK Multi-Tool\projects\DoSystemUI.apk\AndroidManifest.xml]

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

at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav

a:191)

... 6 more

Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2

, The system cannot find the file specified

at java.lang.ProcessBuilder.start(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

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

... 7 more

Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th

e file specified

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(Unknown Source)

at java.lang.ProcessImpl.start(Unknown Source)

... 11 more

Press any key to continue . . .

Not sure what to do. With the apk manager I would get the same error so i tried multi-tool and still getting it. But in apk manager it would ask after saying error was it a system app y/n? and I would says y.

And the it would ask me if i wanted to delete what i edited and save the rest to avoid error and i would say yes and delete the stuff i edited and then it would compile the apk. but it would not work. I would lose my status bar.

Trying to mod the systemUI from Gingeritis 3D for the Thunderbolt.

Please Help!!!!!!
[Android Software Development] Southern_mind:
Well now it works. Thanks for the Apk manager
[Android Software Development] rististien:
error?

so I FINALLY got it all working right but now all of a sudden I'm getting a compile error though the project before it worked just fine :

A subdirectory or file projects already exists.

A subdirectory or file place-apk-here-for-modding already exists.

A subdirectory or file place-ogg-here already exists.

A subdirectory or file place-apk-here-to-batch-optimize already exists.

A subdirectory or file place-apk-here-for-signing already exists.

java version "1.7.0"

Java(TM) SE Runtime Environment (build 1.7.0-b147)

Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

'""platform-tools"\adb.exe"' is not recognized as an internal or external command,

operable program or batch file.

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

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

---------- Post added at 08:52 AM ---------- Previous post was at 08:49 AM ----------

oh and I updated
[Android Software Development] acer2220:
Build problem

when I build an apk it puts everything in a projects foler

unsignedHTC_IME.apk\projects\HTC_IME.apk\

not sure what to change.

Ok so dropped back to version 1.0.1 and it works

when I hit option 3 in 1.0.1 I see

compressing res\

But in version 1.0.2 I see

compressing project\FILESNAME.apk\res\

Hope that helps
[Android Software Development] guap:
I tried to use this tool to decompile systemUI.apk for editing... but my new systemUI is much smaller then original and doesn't work... only xml edited. no errors decompiling/compiling

help :)

- decompiled framework OK

- decompiled system ui OK

- edited /drawable/navigation_bar.xml

- recompiled with "11" option OK

- yes OK

- deleted navigation_bar.xml AND resources.arsc from /keep folder OK

- no errors

result file is about half of the original (~410 kb insteab of ~900)
[Android Software Development] raziel23x:
Phrase refer to this thread

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

She also read the Manuel.chm document it is full of information of what to do. Specially read up on the decompiletoggle switch and compression.
[Android Software Development] FaTaL2019:
Very useful
[Epic 4G Q&A, Help & Troubleshooting] XzavierL:
I have a self flashed Epic on boostmobile and like everyone else im experiencing horrible speeds. I've seen a few users claim that they were able to obtain real 3G speeds, does anyone have any solutions to this? (Preferably without rooting, but wiling to root if required)
[Epic 4G Q&A, Help & Troubleshooting] XzavierL:
*waits for helpful replies* ............ (-____-)
[HTC Sensation] mzangui:
I just wanted to use revolutionary to root my phone, but nothing happened. After that the phone just rebooted and then turned off. Now I can't turn it on and it even doesn't charge!

help please
[HTC Sensation] epsix:
Your phone is not brick, can you still boot into HBOOT? Volume down key and press hold power button.
[HTC Sensation] mzangui:
no, it seems completely dead. Even when I connect it to the charger the charging light doesn't turn on!
[HTC Sensation] william1985:
did you have cwm installed on your phone already and if so what version
[HTC Sensation] Quakeworld:
remove battery.. then try powering the phone.. if nothing happens.. follow this thread...

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

and if still nothing happens..then I would say that it's bricked...:confused:
[HTC Sensation] mzangui:
I don't have CWM, because the problem happened when I tried to root it!
[HTC Sensation] mzangui:
I tried another battery but it didn't work
[HTC Sensation] mzangui:
at least someone tell me if I can return it or report it as lost phone? I am on tmobile
[HTC Sensation] kai2314:
"make sure" there is no way to boot on then just bring back to T-mobile to get a new one; Just say "I got no cure" "whatever they asked.
[HTC Sensation] mzangui:
it wont boot, is there anyway they can read any logs or something from the phone memory to see what happened?
[HTC Sensation] bobsie41:
Same happened to me (exactly) and after being advised by network provider rang HTC repairs, phone picked up next day, returned to me repaired 6 days later, no charge, hassle at all! :D
[Samsung Epic 4G Touch] kali323:
Does anyone how retrieve the MSL code using CDMA Workshop for the Epic Touch? I can easily do it with any HTC phone but it doesnt work with the Epic Touch. I know that you can it easily get it with an app but Im not rooted. Also for whatever reason when I activate a phone to my Sprint account they alway give a MSL code that doesnt work so I always have to get MSL code myself to finish activating the phone. Thanks for anyone who helps.
[Samsung Epic 4G Touch] sfhub:
From a terminal or adb shell just type "getprop ril.MSL"

Sprint used to give the MSL and the One Time Key online. Now they just give you One Time Key, which isn't that useful if this isn't the first activation.
[Samsung Epic 4G Touch] icexige:
1. Download connectbot from market and type getprop ril.MSL

2. Call sprint and tell them you are traveling overseas on a business trip. This method worked just last week with only two tries. First attempt was shot down when I told them that I was a dev and needed msl to complete my project. As soon as I got off the phone, i called right back and told them that Im traveling overseas on a business trip and the rep gave it to me right over the phone.
[Samsung Epic 4G Touch] beserker15:
To get CDMA Workshop to read the MSL, you first need to dial ##8778# and then choose "all". Afterwards, load up CDMA Workshop and connect to it like you would your HTC phones. Go to the security tab and choose custom password and send "01F2030F5F678FF9". After that just read spc and you'll have your msl!
[Samsung Epic 4G Touch] kali323:
Thanks for the help but the getprop ril.msl only works for rooted phones.

but beserker15 your method work great. thanks
[Samsung Epic 4G Touch] sfhub:
Glad you got what you needed. getprop works on stock unrooted. It is case sensitive. "getprop ril.MSL" not "getprop ril.msl"
[Samsung Epic 4G Touch] gedster314:
1. Open Dialer on phone

2. Dial ##8778#

3. Connect phone to computer. (hope you have the drivers or Kies installed)

4. Start/ Right Click Computer/Select Manage Computer.

5. Select Device Manager

6. Find What Com Port your Sammy is on.

7. Open CDMA WS

8. Select Com port and USB

9. Click Connect

10. Click Read

11. Select the Security Tab

12. Password Select Samsung Default. If that isn't there click where you enter one and enter this; 01F2030F5F678FF9. Click Send

13. Look in the box under SPC and see your MSL.
[Samsung Epic 4G Touch] :
link http://download.cyanogenmod.com/?type=stable&device=galaxys2
[Samsung Epic 4G Touch] toprock23:
It's not gonna work. That's for the international GSII and is GSM. We need the CDMA version.
[Samsung Epic 4G Touch] vikramjatt11:
i believe that rom is not for our variant of the phone
[Samsung Epic 4G Touch] ungovernable1977:
dont brick your phone. never flash a rom from a different phone.
[Samsung Epic 4G Touch] graffixnyc:
And please search. There are a number of threads asking this same question.

Sent from my Samsung Galaxy S II Epic 4G Touch
[Samsung Epic 4G Touch] Will of fire:
No it would not just be patient Nd it will come.
[Samsung Epic 4G Touch] cvnntg:
I would follow this guy:

www.twitter.com/codeworkx

But don't ask him for an ETA. He'll chew you out...
[General Questions and Answers] Superandri:
how to solve my mito 9000 pda phone hang in logo.

Thanks.

;)
[Atrix 4G General] calamity***:
Howdy Yall!

I was wondering if anyone else is having issues with the outgoing video chat volume. The person on the other end can barely hear me. I can hear them loud and clear. Ive used Fring and Skype and both have the same issue. My regular phone call volume on the other end is clear. some one please help!

Newb
[Atrix 4G General] WiredPirate:
Try Tango.
[Atrix 4G General] calamity***:
Its the same with tango. Is no one else having this problem? What I dont understand is when I'm in a phone call, the receiverhad no problem hearing me. Its only when I use video chat.any help would be greatly appreciated.
[Atrix 4G General] sanriver12:
try posting in the correct subforum, and maybe you'll get an answer.
[Atrix 4G General] calamity***:
Thanks for the advice. I will move my question.

/end
[Atrix 4G General] ChumleyEX:
I have the same issue with both Skype and Tango.