yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] vlt96:
It asks me if that is the file or report error:confused::confused:

I have ubuntu 12.04 64 bit

And the .py file dows the same as the .bat :(

Anyway my PC is running a bit slow, Ubuntu is unusable, freezes too much, and XP sucks, it is on 32 bit and running on a system made for windows 7 on 64 bit and it runs like ****... gotta ask my dad to get me the old 250GB HDD to install ubuntu on it...

And, btw, I did every step there, see above, I have windows XP
[Optimus One, P500 Original Android Development] mDroidd:
New version uploaded with extract Utils.zip fixed.
[Optimus One, P500 Original Android Development] mDroidd:
You did install Python, PYGTK and GTK+, right??

ubuntu 12.04 is NOT recommended for building, just to tell you.

Windows 64-bits is also NOT supported by PyGtk
[Optimus One, P500 Original Android Development] Lycan:
Getting same-ish error

Platform is not linux2...
Could you PM me the next output??
win32
Traceback (most recent call last):
File "C:\mDroidd-StudioAndroid-GtkUI-2db155d\SAP.py", line 305, in SetAll
button11.set_active(True)
NameError: global name 'button11' is not defined
The syntax of the command is incorrect.
Traceback (most recent call last):
File "C:\mDroidd-StudioAndroid-GtkUI-2db155d\SAP.py", line 310, in Install
shutil.copy(ScriptDir + "/Utils/adb", Home + "/bin/")
File "C:\Python27\lib\shutil.py", line 117, in copy
copyfile(src, dst)
File "C:\Python27\lib\shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\WIN7/bin/'
[Optimus One, P500 Original Android Development] mDroidd:
Ow yeah, forgot that I deleted button11 xD

Thanks, I will add win32.

Also, could you give me the output of

"cd && pwd" in a normal cmd??
[Optimus One, P500 Original Android Development] Lycan:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\WIN7>cd && pwd
C:\Users\WIN7
'pwd' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\WIN7>
[Optimus One, P500 Original Android Development] mDroidd:
Button11 error fixed now.

EDIT: Lycan, how do you get the output of that? How did you open StudioAndroid? Cause I got someone here who did not manage to open it.
[Optimus One, P500 Original Android Development] Lycan:
same error (not the button 11 one)

Platform is not linux2...
Could you PM me the next output??
win32
The syntax of the command is incorrect.
Traceback (most recent call last):
File "C:\mDroidd-StudioAndroid-GtkUI-e7c1161\SAP.py", line 309, in Install
shutil.copy(ScriptDir + "/Utils/adb", Home + "/bin/")
File "C:\Python27\lib\shutil.py", line 117, in copy
copyfile(src, dst)
File "C:\Python27\lib\shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 22] invalid mode ('wb') or filename: 'C:\\Users\\WIN7/bin/'

EDIT : C:>mDroidd-StudioAndroid-GtkUI-e7c1161>sap.py

^Its the only exe file I could find in the folder

After double click it enters the GUI, after which I went to 'Install Utilities' and then it shows the error

EDIT : Output is from the cmd which starts along with the GUI
[Optimus One, P500 Original Android Development] mDroidd:
I really have to start reading posts :P

Windows had to be the EXACT OPPOSITE of Unix.....

The point is, a backslash is an escape sequence in linux....

Hang on
[Optimus One, P500 Original Android Development] Lycan:
Take your time buddy, no rush! :D
[Optimus One, P500 Original Android Development] mDroidd:
Now please try again and give me all output.
[Optimus One, P500 Original Android Development] Lycan:
Imagemagick got installed.

When i try to install the other utils, something shows up in the cmd which links me to the tutorial to changing path variables.

I already did that, but it comes up everytime i start SAP.py and i cannot proceed beyond that

Image editing is working though
[Optimus One, P500 Original Android Development] williamcharles:
I think the point is this
[Optimus One, P500 Original Android Development] mDroidd:
Yes it is..
[Optimus One, P500 Original Android Development] mDroidd:
When installing utils in Windows by changing the PATH, you install them all at once.

So every time you click "INstall", it will guide you trough the PATH TUT, wich actually is installing Utils.

Or I don't understand you.
[Optimus One, P500 Original Android Development] mDroidd:
Updated now.

Resizing should now work totally, except for APK-Resize.
[Optimus One, P500 Original Android Development] RockR172:
W.O.W!

I remember when you had started this with a thread in General Section, it was quite a simple tool in which nobody was interested and look at it now!!

Mahn its come a long way and still has a longer way to go...

My wishes to you... good luck!

Keep going!

Though i dont have much time these days, il still try it out when il get some free tym... :)
[Optimus One, P500 Original Android Development] vlt96:
You shouldn't try it out when you have free time, it will give you free time
[Optimus One, P500 Original Android Development] KeitIG:
Nice Work ! :D

Have you included a string system ?
[Optimus One, P500 Original Android Development] mDroidd:
Hey, mind if I put that quote on the main page?

THANKS!
[Optimus One, P500 Original Android Development] mDroidd:
Not yet, sorry.

In python, I am still just a newbie.

Also multithreading (is actually multitasking or parallel run jobs) is coming in a later stage.

But it WILL become part
[Optimus One, P500 Original Android Development] vlt96:
You can:D

This is how I feel right now:

And multithreading is like chrome does? separating an app on 2 separate processes?
[Optimus One, P500 Original Android Development] mDroidd:
Don't know if chrome does it, but it's like this:

Normal: you press the button "Resize". You can only control the GUI or see updates after the commands are finished.

Multi: you press the button, resizing starts in a new thread and you can do something else at once.
[Optimus One, P500 Original Android Development] mDroidd:
Lol, the first part of APKResize is already done, now it's just a little thing on signing and use the correct directory.

After that, and Batch theme (thinking of an color picker as cherry pick), the Utils section is done :D

The APK thingy will have a nice option-menu also.

The Build section will take a little longer, because of the importing device-specific sources...

Anyway, I think I am doing a good job, right?
[Optimus One, P500 Original Android Development] Bytecode:
Daaaaaaaaamn bro,I see really good job right there. Amazing GUI that makes you do everything. You came up with a pretty good idea dude.
[Optimus One, P500 Original Android Development] KeitIG:
You can add international localization with:

-Strings (so an .xml file, as in an Android Eclipse Project)

-or Gettext Library (http://docs.python.org/library/gettext.html) I think this would the simpler solution in code lines ;)
[Optimus One, P500 Original Android Development] williamcharles:
any prerequisties for ubuntu?

After double clicking SAP it just opens in gedit as it is a simple plain text document for me...am I missing something?a

EDIT: Dragging worked....but it cant see images.

After running it through ./SAP, everything is fine....

I really love the new gui look...keep up the work...:)
[Optimus One, P500 Original Android Development] RockR172:
True story mahn! :D :D

Haha!
[Optimus One, P500 Original Android Development] mDroidd:
When I double-click it, I am asked "run in terminal or display?"

I am glad it works now
[Optimus One, P500 Original Android Development] GeekSpin:
don't know whats happening but whenever i click on any button in the GUI

the cmd puts a line

do you want to run the command (Y.n)

when i press y

its says (.) not recognized as command

and the pkg-config

command is also not recognized

i am on windows 7
[Optimus One, P500 Original Android Development] mDroidd:
Ok, I'll explain.

I jisted ported some fuctions, not all.

When you click a function that I did NOT port yet, it asks you to run the command in the normal script.

That is linux only, so that wont work.

Also, pressing the Y won't work ;)
[Optimus One, P500 Original Android Development] mDroidd:
NEW GUI:

Tell me if you like it, and what I can improve!
[Optimus One, P500 Original Android Development] vlt96:
"download source" and prepare build environment (but I think that is) and then in the command line the links :D

Oh yea and that's nice;)
[Optimus One, P500 Original Android Development] ThePresence:
it can be used for any rom development???? like i wanted to devlop for htc one v so i can??
[Optimus One, P500 Original Android Development] mDroidd:
Look at the changelog @Post #2.

That is what's ported, the rest will NOT work.
[Optimus One, P500 Original Android Development] ThePresence:
These are the errors i got after selecting build from sources.....

View attachment 1062154

View attachment 1062155
[Optimus One, P500 Original Android Development] ThePresence:
also i'm unable to open your new gui....after double clicking on sap terminal displays for a second and and then disappers
[Optimus One, P500 Original Android Development] mDroidd:
Then try to open a terminal and drag the file in, and then give me the error.
[Optimus One, P500 Original Android Development] mDroidd:
Sorry, I will not fix the CLI bugs anymore,

Working full-time at the GUI.

As the GUI is written in an other language, I need to re-write all functions.

With my new knowledge, a lot of bugs wont appear anymore.

Sorry for the bad news.
[Optimus One, P500 Original Android Development] mDroidd:
Message dialog added

Color picker (Home made by me :D) added

Close button for non-menu options added

Lock for run in terminal in Windows

Bugfixes

Newest screnshot:
[Optimus One, P500 Original Android Development] vlt96:
Looks epic:eek::eek:;)

You can (or try to) make the older UI as a "new tab" page and open new tabs like that with "X" opening from it :D
[Optimus One, P500 Original Android Development] mDroidd:
You mean the all-in-one menu as one tab, and the rest as multiple tabs??

If that's what you mean, sorry, but no.

I will be adding more and more functions in the future, and making the screen size bigger and bigger all the time does not look über...
[Optimus One, P500 Original Android Development] vlt96:
I meant the original UI, but tabs on top, and everything you do opens in a new one, not making it bigger
[Optimus One, P500 Original Android Development] mDroidd:
Could you help me with that?
[Optimus One, P500 Original Android Development] mDroidd:
No, sorry :(
[Optimus One, P500 Original Android Development] KeitIG:
Of course, but it's easy, particulary for the original langage :)
[Optimus One, P500 Original Android Development] mDroidd:
Updated.

Android SDK is now supported

My tool uses now compiled code (wich is faster)
[Optimus One, P500 Original Android Development] ccdreadcc:
just wanted to say ur doing great sh!t :D

keep up and good work and improvise :rolleyes:

i tried the windows setup and there is no sap.bat in "c:/mDroidd-StudioAndroid-GtkUI-a66d093"

OT: how old are you? :p
[Optimus One, P500 Original Android Development] mDroidd:
You can't run a bash script in windows, dumbass. :P

Yes, I removed SAP.bat, as what I made was not a batch file :P

To open in windows, right click SAP.py > Open with > Python (command line)

I am 14 years old.
[Optimus One, P500 Original Android Development] KeitIG:
MDroidd: i was asking myself:

Did the current Studio Android files are really in Python or theres is an interpreter who "translate" bash in python ?
[Optimus One, P500 Original Android Development] mDroidd:
They are really in python.

I use SAP as a shortcut for users who don't understand how to use a terminal, and that IS written in bash so that you can double-click it to run.

Inside it, there's just a command that says "python [path to this script]/SAP.py"

You can download it and have a look yourself!
[Optimus One, P500 Original Android Development] ccdreadcc:
its not working..
[Optimus One, P500 Original Android Development] mDroidd:
Damn, I thought to be smart by doing something new.

Please download again and try again, it should work now.
[Optimus One, P500 Original Android Development] thedoginme87:
Do you think it work with windows 8 64bits??

Press Thanks if i helped you! :D
[Optimus One, P500 Original Android Development] mDroidd:
It will
[Optimus One, P500 Original Android Development] homecanibal:
mDroidd, i can build from sources using old GUI?
[Optimus One, P500 Original Android Development] mDroidd:
Not fully implemented, but yes.

I recommend waiting for me to implement it in the GUI.
[Optimus One, P500 Original Android Development] ThePresence:
This will be work with Ubuntu 12.04 cuz I have Ubuntu 12.04 and got so many errors....even I tried other ways to make custom rom but I only got errors and errors...what should I do??
[Optimus One, P500 Original Android Development] mDroidd:
Please be a BIT more specific as "errors".

When you build and added a new device, you will ALWAYS get errors.

Just tell me wich ones.
[Optimus One, P500 Original Android Development] homecanibal:
ok thks i'll wait...
[Optimus One, P500 Original Android Development] mDroidd:
Updated with Apk (De)Compile (fused as always).

Screeny:

The code is (for now) VERY messy. I hope I have fixed that in a few days.

BUG: It (de)compiles the amount you clicked the option, so if you click it and then change you mind, it will decompile twice :P

EDIT: Fixed.
[Optimus One, P500 Original Android Development] aayushARM:
:eek::eek: Hope you're kidding!!..... ;(

No?!? Really??!:eek: Kinda surprised to see such young kidz doing such a great job...!!:)

I am 15, and have just learnt some days ago, "how to build from sources"!!! And you're making a tool to build from sources!!!:eek:.....!!!!!

And ofc, great work bro!! Keep it up, always...!:)

Sent from heaven, wandering with Steve Jobs ;)
[Optimus One, P500 Original Android Development] mDroidd:
Just tell yourself nothing is impossible and you can do the same as I do in 2 weeks. Cause thats the amount of time I had to make my tool. I didn't know Python or GTK before.

In 1000, they couldn't imagine a telephone

In 1800, they couldn't imagine a human on the moon.

Don't tell me you can't imagine yourself making this tool ;)
[Optimus One, P500 Original Android Development] mDroidd:
Ghehe, updated again with Extract/Repackage!

I hope that I can finish the APK section this week.

Then I will start at the development section, wich will be a little harder...

Anyway, what option would you like to be ported now?

EDIT: SignAPK Ported also :P
[Optimus One, P500 Original Android Development] ccdreadcc:
ur dad is helping u with this? if yes then ur one lucky son o'a :P

even rebecca black is 14 years old.. just saying :P
[Optimus One, P500 Original Android Development] mDroidd:
I don't know rebecca black...

And no, my father doesn't really have experience with GTK, I am doing this myself...
[Optimus One, P500 Original Android Development] aayushARM:
[OT]

I never underestimate myself !!:D:D

I meant you're so faaaast on this and at sooo early age!!:eek: Keep up bro, you'll be a great dev in future!! :)

And yes, someday I'd be too developing something unique, like you..!!:D;)

BTW, do you have a thread for this tool on the main android development and hacking section ?? 'Coz it shud be there, to let all others too know abt. this awesome tool!!;)

[/OT]

Sent from heaven, wandering with Steve Jobs ;)
[Optimus One, P500 Original Android Development] mDroidd:
Yeah, it should be.

But I will release there ONLY when I have a bugfree stable version, compiled for all 3 platforms (MAC/LINUX/WINDOWS), as I don't want a bad reputation.
[Optimus One, P500 Original Android Development] ssanthosh:
Hot to move forward

Hi

I am trying to use this tool on winxp.

I tried to install all utilities at once, but the version of imagemajick was not available so installed ImageMagick-6.7.7-Q16

Tried to install other utilities, i get the following message

"Choose an option : n

Sorry, windows does not support $PATH modifications from cmd...

Instead, I will open up a site for you

That site contains a HOWTO on adding a directory to the PATH.

Add this directory: C:\\Utils

Options: [n] NVM [1] Open link

Choose an option :"

I have included the directory "C:\\Utils" in the path, but the same message is being displayed.

How to overcome this issue.
[Optimus One, P500 Original Android Development] mDroidd:
When you added that to the path, the utils are installed... so you don't need to install anymore!
[Optimus One, P500 Original Android Development] mDroidd:
From now on, you can see if there is an update by comparing the title.

So $3 is newer then $2.

Changelog will be posted in the Google Code Project, because I don't want to keep editing every thread and piece of information every time.

But as a last update:

$2 + $3:

Ported Zipalign, Install APK

Permanently removed CompileZipSign (all in one step).

I think it is time to start on the development section :D:D:D
[Optimus One, P500 Original Android Development] Bytecode:
Rebecca Black? Who talked about that b*tch? :D

Anyway,I see that your work keeps going mDroidd great job :),how about that italian translation thingy?
[Optimus One, P500 Original Android Development] mDroidd:
I'm not Italian huh ;)

KeitG is helping me with GetText, an implementation for translating strings with xml files (for my current knowledge).

He is taking his time.

And I will let him. I want a bugfree version first!
[Optimus One, P500 Original Android Development] Bytecode:
No bro,I mean we talked previously about me translating this tool in italian let me know :)
[Optimus One, P500 Original Android Development] mDroidd:
I will let you know as soon as KeitG answers my PM.

I didn't have time to figure it out myself.

I am now busy porting Build from Source with as few lines as possible :P
[Optimus One, P500 Original Android Development] Oathkeeper1212:
Hey mDroidd, good job on making this! :) have you implemented the LG-P505 kernel source into your tool?
[Optimus One, P500 Original Android Development] mDroidd:
I only included stock and P500.

In the next update, including sources will me MUCH easier!
[Optimus One, P500 Original Android Development] mDroidd:
Added Build from Source, and included SwitchBuildMode in that.

For now, build modes are:

Stock, P500

P500 is stock, but also contains Popdog123 Oxygen.

I am now figuring out how to add a device to the manifest, so a new version will be published soon.

Enjoy $4!
[Optimus One, P500 Original Android Development] algie17:
IOError: [Errno 2] No such file or directory: '/proc/cpuinfo'

how can i fix this?,i think im missing a file,
[Optimus One, P500 Original Android Development] mDroidd:
What OS are you on?

Oh ****.. whoops, I'll update soon. Sorry!
[Optimus One, P500 Original Android Development] mDroidd:
Updated with Core detection for every OS.
[Optimus One, P500 Original Android Development] algie17:
,windows XP,i debug it at notepad++ and i think a directory/file is missing,thanks,i download the updated file(mDroidd-StudioAndroid-GtkUI-2dae078),still this error occur,
[Optimus One, P500 Original Android Development] mDroidd:
If it says "No such file or directory", then indeed, a file is missing :P

Download the latest one as usual, replace current.

Should work!
[Optimus One, P500 Original Android Development] algie17:
Preparation:

Download and run Python

Download and run GTK+ - 32-bits / 64-bits

Extract the downloaded file at c:\opt\gtk

using this guide, add "C:\opt\gtk\bin" to the PATH.

open a cmd, and run "pkg-config --cflags gtk+-2.0"

To test if it is working, run "gtk-demo"

Download and run PYGTK - 32-bits

Download THIS

Extract in C:\

Double-click SAP.bat

i follow this,i downloaded the latest but still thats the error,
[Optimus One, P500 Original Android Development] mDroidd:
Whoops :P

Now it should work!!!
[Optimus One, P500 Original Android Development] algie17:
its still not working,:(,the error is still the same,
[Optimus One, P500 Original Android Development] mDroidd:
Wich line gives the error?

If 33, try and update again, I edited it.

Else, please give me the full log in a quote :)
[Optimus One, P500 Original Android Development] Lycan:
Hey mDroidd, sorry for not replying your PM's. I was way too busy bro.

Btw, I tried installing the other utils, and it still shows the same error as of before.

I have imagemagick installed, nevertheless I installed it again and I'm getting the same message.

I also tried changing the path to :

but still i get the same error.

_____________________________________________________________________

That's because you have to change your path to the folder where you extracted your SAI.

My UI is opening atleast
[Optimus One, P500 Original Android Development] mDroidd:
First of all, ouch, the gtk.Notebook really looks ugly on Windows...

I'll look for a way to change background, white is stupid.

I was busy too, sorry.

I still don't understand your problem:

when you add the Utils directory to the path and install imagemagick, ALL TOOLS ARE INSTALLED!

But I do need to build a check indeed...

But, if you open up a cmd, and type "resize", what is the output? also "adb" output?
[Optimus One, P500 Original Android Development] algie17:
C:\Documents and Settings\AlgieArgieYusney>C:\mDroidd-StudioAndroid-GtkUI-15d554
2\SAP.py
Traceback (most recent call last):
File "C:\mDroidd-StudioAndroid-GtkUI-15d5542\SAP.py", line 154, in <module>
zipfile.ZipFile(ScriptDir + "/Utils.zip").extractall()
File "C:\Python27\lib\zipfile.py", line 699, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\Algie
ArgieYusney/Utils.zip'

C:\Documents and Settings\AlgieArgieYusney>

now this is the error,thanx for responding to my problems,^^
[Optimus One, P500 Original Android Development] williamcharles:
aint it be like this....'C:\Documents and Settings\AlgieArgieYusney\Utils.zip'
[Optimus One, P500 Original Android Development] algie17:
,i know but i don't want to change the codes,i think the best one that can debug it is the encoder,
[Optimus One, P500 Original Android Development] mDroidd:
Python will edit this automatically, else the whole program wouldn't work.

@Algie: please give me the FULL output (so also "Scriptdir = ", "Cores = " etc).

Is my tool extracted in a seperate directory?
[Optimus One, P500 Original Android Development] williamcharles:
Yes, but why does it includes "\\"..windows uses only '\' and it should have been AlgieArgieYusney\Utils.zip not AlgieArgieYusney/Utils.zip

"C:\\Documents and Settings\\AlgieArgieYusney/Utils.zip'
[Optimus One, P500 Original Android Development] mDroidd:
Python implements directory changes with \\.

So that's fixed.

Also, It notices the changes between WIndows, Linux, Mac.

The problem is, my tool caught the wrong ScriptDir.

But that will be fixed in the next update.

I appreciate your activity.

Do you have experience in python??
[Optimus One, P500 Original Android Development] williamcharles:
sadly, no :( ...my work dint gave me a chance to experiment on python...
[Optimus One, P500 Original Android Development] mDroidd:
I can tell you, it is really easy to learn :)

My experience was ZERO on Python when I started this gtk project.