yashsingh1/xdaforums huggingface dataset:
[Android Software Development] broodplank1337:
Hi Jamez, Hmm Ill take a look at the site.

I don't use upx :p, i know its often detected as a virus or so, so I chose not to use it.

Idd its fantastic since it can almost do everything an other language also can and its really easy. and thanks, Well I have, but only small apps. the goal is not to get a compilable eclipse project but to check out the code in eclipse, the native editor.

I pmed you to talk further ;)

Hi Adam,

I have noticed the same error on whine, when you debug it with the editor (scite) you see that the error comes from the function to get the separate parts from the paths (drive/path/file)

Z:\home\broodplank\apktojava\ExtProp.au3 (12) : ==> The requested action with this object has failed.:

$oFile = $oDir.Parsename ($sFile)

$oFile = $oDir.Parsename ($sFile)^ ERROR

ExtProp:

Func _GetExtProperty($sPath, $iProp)
Local $iExist, $sFile, $sDir, $oShellApp, $oDir, $oFile, $aProperty, $sProperty
$iExist = FileExists($sPath)
If $iExist = 0 Then
SetError(1)
Return 0
Else
$sFile = StringTrimLeft($sPath, StringInStr($sPath, "\", 0, -1))
$sDir = StringTrimRight($sPath, (StringLen($sPath) - StringInStr($sPath, "\", 0, -1)))
$oShellApp = ObjCreate ("shell.application")
$oDir = $oShellApp.NameSpace ($sDir)
[COLOR="Red"][B] $oFile = $oDir.Parsename ($sFile)[/B] [/COLOR]
If $iProp = -1 Then
Local $aProperty[35]
For $i = 0 To 34
$aProperty[$i] = $oDir.GetDetailsOf ($oFile, $i)
Next
Return $aProperty
Else
$sProperty = $oDir.GetDetailsOf ($oFile, $iProp)
If $sProperty = "" Then
Return 0
Else
Return $sProperty
EndIf
EndIf
EndIf
EndFunc ;==>_GetExtProperty

Its really a windows based udf, I either have to make a new one or I will create a whole new linux version. Since I almost spend more time on linux now then on windows 7 :good:

Anyways, the project is not dead :silly: so updates will come
[Android Software Development] SpaceCaker:
[MENTION=3341220]broodplank[/MENTION] some apps do not want to decompile to java i also tried to decompile the dex2jar command option but also gives errors (will post the errors here tomorpw) also ometimes it decompiles the app properly but then it misses tons of java files

or xml / drawables

+ if there is going to be a update try to implement these

Concert XML to XML like what is being used on android source

+

if decompiles java

instead of using 0x7etcccc code but like R.id.reset

R.drawable.reseticon

etc

*dont know exact name for it *

sorry my much asking ;)

thanks for developing this pretty handy tool
[Android Software Development] Maxx247:
error

Edit: i got solution for my prob:p:D

hit th@nk$ if i h€lp€d !!

sent f®om the a©ei
[Android Software Development] Jarmezrocks:
Hey Adam,

AutoIT doesn't seem to like Wine all that much. It is because Wine lacks the full Windows framework. The best bet you have is to install the AutoIT framework (well its just an installation package) and then install this app afterwards and then taking baby steps to see where it breaks and then finding out what sort of patch solution developers have made for Wine to deal with that.

My guess is that it spat the dummy right at the JD-GUI part where it is trying to get a handle on the application window and can't? I could be wrong though?

Not only that but the binaries packaged with it although they are Java and cross platform the console is actually sending the commands....in windows you just don't see it. It is hidden by command. Basically calls that are execs in each environment don't marry up when you are dealing with Java, You would know this all too well your self with your own app Casual Root (Man I laugh when I hear that name lol). Yours because it is fully contained in Java, once you get classpath and you kick things off with a wrapper script you're sweet.

With AutoIT it is handling each of the java commands its self like running a series of scripts essentially. So the whole thing would need to be translated to work for a Linux Java Env and the binaries swapped to suit. I am not all that clued up on how Wine works so I am not sure if some Windows batch scripts .bat or .cmd with Windows "like" calls executing Linux commands like ./java would work best? Or if to call bash like scripts direct from the command line (hidden) to the Java binaries?

Adam, something you might know of that I am kinda stuck with at the moment is that I am hoping to make some plugins for this app that Broodplank has made. Its an Awesome little app and much better than me trying to get my own off the ground. Anyway one of the things that I want to translate is actually a Linux Java binary. For some reason it can never establish a class path inside of windows. All of the commands work from the console though so it should work?

It could potentially make this one of the best decompilers around if I can get it working right. Do you know how to get a Linux Binary to establish classpath inside of a Windows Env? As far as I can tell the biggest issue is that the spaces of all the other "pathed" Java apps before it. I can put the binary at the root of C:\ and it will still fall over because the first Java app it sees on the path has C:\Program Files\ and it interprets the space as passing C:\Program to it as an argument

Any help would be greatly appreciated. I have this as a script that I was told would work?

@ECHO OFF
SET BD=%~dp0
SET CP=%BD%jdom\jdom.jar
SET CP=%CP%;%BD%swt\swt.jar

start /B javaw -cp "%CP%" mypkg.MyApp
[Android Software Development] AdamOutler:
Just do the whole thing in Java.

To detect the system, you can use my code here: https://code.google.com/p/android-casual/source/browse/trunk/CASUALcore/src/CASUAL/Statics.java#171

To detect the system arch: https://code.google.com/p/android-casual/source/browse/trunk/CASUALcore/src/CASUAL/Statics.java#288

For resources, there's two options...you can make a static reference to your resources like this: https://code.google.com/p/android-casual/source/browse/trunk/CASUALcore/src/CASUAL/Statics.java

or you can have it build the names like I do for the online-update system: https://code.google.com/p/android-c.../CASUALcore/src/CASUAL/CASUALUpdates.java#252 which downloads files directly from https://code.google.com/p/android-casual/source/browse/#svn/trunk/repo based on names set in the CASUALUpdates class.

After you get all that down, it's simply a matter of deplying the files required to a known location (you can use my FileOperations.copyFromResourceToFile() https://code.google.com/p/android-c.../CASUALcore/src/CASUAL/FileOperations.java#44

using a TempFolder as your filesystem location: https://code.google.com/p/android-casual/source/browse/trunk/CASUALcore/src/CASUAL/Statics.java#86

And finally, you will execute the desired commands: https://code.google.com/p/android-casual/source/browse/trunk/CASUALcore/src/CASUAL/Shell.java

So, that should be everything you need in order to do a full java version if you've got java bins. If you have platform-specific binaries...

public void deployADB() {
if (Statics.isLinux()) {
Log.level4Debug("Found Linux Computer");
updateADBini();
Statics.AdbDeployed = Statics.TempFolder + "adb";
FileOperations.copyFromResourceToFile(Statics.LinuxADB(), Statics.AdbDeployed);
FileOperations.setExecutableBit(Statics.AdbDeployed);
} else if (Statics.isMac()) {
Log.level4Debug("Found Mac Computer");
updateADBini();
Statics.AdbDeployed = Statics.TempFolder + "adb";
FileOperations.copyFromResourceToFile(Statics.MacADB, Statics.AdbDeployed);
FileOperations.setExecutableBit(Statics.AdbDeployed);
} else if (Statics.isWindows()) {
Log.level4Debug("Found Windows Computer");
updateADBini();
FileOperations.copyFromResourceToFile(Statics.WinPermissionElevatorResource, Statics.WinElevatorInTempFolder);
Statics.AdbDeployed = Statics.TempFolder + "adb.exe";
FileOperations.copyFromResourceToFile(Statics.WinADB, Statics.AdbDeployed);
FileOperations.copyFromResourceToFile(Statics.WinADB2, Statics.TempFolder + "AdbWinApi.dll");
FileOperations.copyFromResourceToFile(Statics.WinADB3, Statics.TempFolder + "AdbWinUsbApi.dll");
Statics.LiveSendCommand.add(Statics.AdbDeployed);
Statics.LiveSendCommand.add("get-state");

new Shell().silentBackgroundShellCommand();
try {
Log.level4Debug("sleeping for Windows ADB start");
Thread.sleep(1000);
} catch (InterruptedException ex) {
//no catch needed for sleep interruption
}
} else {
Log.level0Error("Your system is not supported");
}

My shell class works like

String x = new Shell().sendShellCommand(new String[]{Statics.AdbDeployed, "param", "param2"........}

Hope that helps. Full java is the best way to go for cross-platform anything.
[Android Software Development] cuartas:
can you help me? when I try to choose an apk or a jar file appears this:

Autolt Error

Line 1260 (File ".......\APKtoJava.exe"):

Error: Variable must be of type "Object".

after that, program closes.

This happens even with my simple app

any solution?

thanks
[Android Software Development] chaoticoz:
I tried it on my own app LuxMeter, the decompiling seems to work fine, but when opening the eclipse project i get about one thousand of "a cannot be resolved or is not a field" errors. am i just dumb?
[Android Software Development] SpaceCaker:
nope it seems to decompile the java not correctly .

mostly it adds

L2 entries and such if it cant find the proper method
[Android Software Development] giaur:
Is this still maintained? To test how it works, I created very basic eclipse example project (SkeletonApp). Firsto of all code is not the same as original.

Original code looks like this:

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case BACK_ID:
finish();
return true;
case CLEAR_ID:
mEditor.setText("");
return true;
}

return super.onOptionsItemSelected(item);
}

And decompiled:

public boolean onOptionsItemSelected(MenuItem paramMenuItem)
{
boolean bool = true;
switch (paramMenuItem.getItemId())
{
default:
bool = super.onOptionsItemSelected(paramMenuItem);
case 1:
case 2:
}
while (true)
{
return bool;
finish();
continue;
this.mEditor.setText("");
}
}

Also even with this simple project, there are a lot of compilation errors, for example in this decompiled code:

public class SkeletonActivity extends Activity
{
private static final int BACK_ID = 1;
private static final int CLEAR_ID = 2;
View.OnClickListener mBackListener = new SkeletonActivity.1(this); //ERROR: View cannot be resolved to a type
View.OnClickListener mClearListener = new SkeletonActivity.2(this); //ERROR: View cannot be resolved to a type
private EditText mEditor;

public void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
setContentView(2130903040);
this.mEditor = ((EditText)findViewById(2131165184));
((Button)findViewById(2131165185)).setOnClickListener(this.mBackListener); //ERROR: OnClickListener cannot be resolved to a type
((Button)findViewById(2131165187)).setOnClickListener(this.mClearListener); //ERROR: OnClickListener cannot be resolved to a type
this.mEditor.setText(getText(2131034115));
}

Original code:

static final private int BACK_ID = Menu.FIRST;
static final private int CLEAR_ID = Menu.FIRST + 1;

private EditText mEditor;

public SkeletonActivity() {
}

/** Called with the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Inflate our UI from its XML layout description.
setContentView(R.layout.skeleton_activity);

// Find the text editor view inside the layout, because we
// want to do various programmatic things with it.
mEditor = (EditText) findViewById(R.id.editor);

// Hook up button presses to the appropriate event handler.
((Button) findViewById(R.id.back)).setOnClickListener(mBackListener);
((Button) findViewById(R.id.clear)).setOnClickListener(mClearListener);

mEditor.setText(getText(R.string.main_label));
}

So it seems code is generated incorrectly, is there any workaround?
[Android Software Development] gonza28:
Thank you very much my friend
[Android Software Development] RuralGalaxy:
Very useful tool! Thanks for share! :good::D
[Android Software Development] Pankaj Rai:
thanksss
[Android Software Development] giaur:
Is this still maintained? Everything that I can say, resulting code is impossible to compile (incomplete) and also it's dirty. Resources are sometimes duplicated.
[Android Software Development] ra.la72:
nice tool

it seems to generete .java files, but they aren't in the output dir...
[Android Software Development] George_uk:
Understanding Java Code

Hi, thanks so much for this project!

I decompiled an app to java code, but cannot at all make sense of the hundreds of folders within folders.

The main folders are titled "android, cn, com, io, net, org, u". Within each one is anothe load of folders and so forth. Where would the main source code files be located? Really trying to get my head around the file structure!

Thanks
[Android Software Development] dr_jacky_2005:
RC3 version link

Hello,

First of all, thank you so much for this brilliant.

I have same problem like AutoIt Error #3;

But where is RC3 version?!

Thanks.
[Android Software Development] mmtwilba:
Error: Subscript used with non-Array variable.

getting

Line 5133

Error: Subscript used with non-Array variable.
[Android Software Development] wnocella:
I also getting error "Subscript used with non-Array variable" meanwhile eclipse project is generating.
[Android Software Development] dinodinodino59:
error

error "Subscript used with non-Array variable"

What to do?
[Android Software Development] ranchu-panchu:
Hello,

Thank you very much for the tool.

Can it be used to compile the edited code back to apk format ?

Thanks,

Ran
[Android Software Development] boscarino:
Friends,

What am I doing wrong and how to solve it?

The following message is always displayed:

"AutoIt Error - Line 5133 (file" C: \ Users \ fsbos \ Desktop \ Windlass \ Android \ APKtoJava_RC2 \ APKtoJava.exe "); Error: Subscript used with non-variable Array.

Log

APK to Java RC2 Initialized ....

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

- Extracting APK ...

- Extracting APK Done!

- Decompiling Resources ...

- Decompiling Resources Done!

- Copying to output dir ...

- Copying to output dir Done!

- Decompiling to Smali code ...

- Decompiling to Smali Done!

- Copying to output dir ...

- Copying to output dir Done!

- Converting classes.dex to classes-dex2jar.jar ...

- Generating Java Code Done!

- Extracting Java Code ....

- Extracting Java Code Done!

- Copying Java Code to output dir ....

- Copying Java Code Done!

- Making Eclipse Project ...

- Extracting Example Project ..

- Importing AndroidManifest.xml ...

- Importing Resources ...

- Setting Project Name ..

From here it looks like the reported error.

Help me!
[Barnes & Noble Nook Tablet] Zuul86:
I've been unable to install the ADB drivers for the Nook Tablet on Windows 8. I get as far as browsing to the folder which contains the inf file after clicking on Have Disk... and I get a message saying Windows could not find driver software for your device. I've tried on two different computers.

Has anyone had any luck installing the ADB drivers for the NT? I'm running Windows 8 RTM.
[Barnes & Noble Nook Tablet] 424aca:
question: why would you have windows 8...

whatever

If I am correct I heard you need to disable drivers signature checking by Windows (google it, shouldn't be hard) and then it works like 7.

get you started:

http://www.google.com/search?client...pw.r_qf.&fp=5cc52e1fec28dbe3&biw=1333&bih=602
[Barnes & Noble Nook Tablet] SlowCobra96:
Because many people are allowed to have it for beta testing as well as corporate enterprise testing. It isn't pirated if that is the reason for the why followed by the whatever.
[Barnes & Noble Nook Tablet] 424aca:
my bad homie, wasn't accusing you of nothing

but my reply did it work?
[Barnes & Noble Nook Tablet] SlowCobra96:
(Shrug) I didn't post with the problem I was just addressing what seemed like a possible disgust emotion brewing for having pirated software. Just wanted to set the record straight for those not in the know about Win 8's release status.
[Atrix 4G Q&A, Help & Troubleshooting] milojoseph:
Hey guys, can you help me? EVERY TIME I GO TO CWR (CLOCKWORKRECOVERY) IT SHOWS AN ANDROID AND AN EXCLAMATION POINT. wHY IS THAT :rolleyes::rolleyes:
[Atrix 4G Q&A, Help & Troubleshooting] d3athsd00r:
Because you didn't install a custom recovery, or you installed a recovery and then rebooted into stock Android and it over wrote your recovery.
[Atrix 4G Q&A, Help & Troubleshooting] milojoseph:
How do you fix it
[Atrix 4G Q&A, Help & Troubleshooting] joelorona:
You haven't flashed a custom recovery.

I believe that now you are root user and have the unlocked bootloader. If so, you just have to open the cmw application and you will fin an option that says "Flash.... " you just press it, it will ask for the model of your phone, it'll download something automatically and at the end will ask for root permisions.

When it has finished, just reboot into recovery and you'll find all the options of CMW
[Verizon Samsung Galaxy S III] Peterpark:
HELP! my cm10 rom keeps rebooting by itself!! over and over again!

If i want to switch over to AOKP jellybean can i just wipe cache/davike/system and flash? or do i need to factory reset?
[Verizon Samsung Galaxy S III] imneveral0ne:
If you're flashing a different rom, always wipe data.
[Verizon Samsung Galaxy S III] Peterpark:
so a factory reset??

can i flash AOKP after just wiping Cm10?
[Verizon Samsung Galaxy S III] dtoye:
If switching to aokp I'd suggest doing a full data/cache/dalvik wipe this should fix your boot loop also doesn't hurt to make sure md5 matches what you download.
[Verizon Samsung Galaxy S III] Hmong_Xiong:
And wipe /system

under mounts & storage

Sent from my SCH-I535
[Verizon Samsung Galaxy S III] KennyG123:
Please read forum rules before posting!

Questions go in Q&A

Thread moved
[Eee Pad Transformer Q&A, Help & Troubleshooting] brianjcohen:
The 'volume down' button on my TF101 is broken. It doesn't work in Android to adjust the volume down (never has) and I can't access recovery by holding it down with the power button on boot. I would like to access recovery, however. I tried sending it a 'reboot recovery' via adb, but that just rebooted the device.

Any advice would be greatly appreciated. Thanks!
[Eee Pad Transformer Q&A, Help & Troubleshooting] xVeyron:
Great question.

There are a few easy ways to do exactly what you asked for.

My favorite method is using the Android Terminal Emulator. Open the emulator and write:

su
[I](now you will be asked to grant super user permission to the app)[/I]
reboot recovery

Wait a few seconds, and it will boot into your recovery.

Another way is to use Transformer reboot to Recovery app, which worked great for me, but some people said it bricked their device?!:confused:

Feel free to ask questions! :D
[Eee Pad Transformer Q&A, Help & Troubleshooting] brianjcohen:
Thank you for responding. Unfortunately, I can't do either of those because they require a fully rooted device. And because I can't access recovery, I can't finish rooting my device. I am using the PERI one-click root method and I wasn't able to complete the final step, is to access recovery and install the zip file.
[Eee Pad Transformer Q&A, Help & Troubleshooting] Aliante:
If memory serves me right, when I did root my tablet via the tool linked below, I did not have to do anything from within recovery.

I simply had to run the tool and got root without any manual action

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

But I had a stock recovery, not the custom recovery which you now have after using PERI.

No idea if you could get in deeper trouble by using it now.
[Galaxy S III Q&A, Help & Troubleshooting] debabrata.mishra:
Hi I recently restored my s3 to factory reset but after that I am not able to connect any devices (phones or laptop )with wifi tethering

Prior to reset it was working fine. I have not rooted my phone.

Do I have to reset it again? Any other possible solutions?
[Galaxy S III Q&A, Help & Troubleshooting] lvoonjian8888:
Can you explain it in more detail? If using hotspot, are your phone close enough with the device you want to paired? Did you try bluetooth or usb tethering? Did your phone have data connection?
[Galaxy S III Q&A, Help & Troubleshooting] DrMight:
Having major issues with tethering on my SGS3 aswell.

When I recieved the phone, stock out of the box, I was unable to get tethering working, it worked for 10-60mins then automatically turned off.

I rooted the phone, and tried various tethering apps, and finally (after a couple of days) managed getting FoxFi to give me a stable tether.

Now I've installed the latest FW, and Im back to square 1 (or even further back), FoxFi puts up an access point, but after being connected 10-60mins, tethering stops working, and the connection dissapears from the list on my computer. FoxFi still reports it's running, so I have to turn it off, then back on to get another 10-60 minutes.

Keep Wi-Fi on during sleep: Always

Build Number: IMM76D.I9300XXBLH3

Android Version: 4.0.4

Considering trying Cyanogenmod, but I really like the stock room and wish to stay on it.

USB tethering is out of the question, as I use it for Xbox360, PS3, talet etc.

For those wondering, usually having 10/8 mbps @ 80ping, limited to 20GB traffic a month, aint that bad tbh.

Might just gotta get me a proper and wired internet connection instead.

Anyone got any idea what so ever what might cause this? Ill be more than willing to post logs etc, just tell me how.

One more thing, some of the tethering apps gives Ad Hoc error, FoxFi the only I've not getting this error on (of those Ive tried atleast).
[Galaxy Note II General] jermitano:
welcome to the galaxy note 2 philippines thread

as announced by samsung philippines, the galaxy note 2 would be released in the country on the 2nd or 3rd week of october with grey markets already taking pre-orders and a minute number already having access to the phone via other channels

the thread is mainly for users from the philippines but will also cater to our mates from other countries...

here's a preview see thru article care of TechPinas (credit to Mark Macanas)

http://www.techpinas.com/2012/08/samsung-galaxy-note-2-n7100-philippines.html

images care of Technobaboy Philippines thread
[Galaxy Note II General] jermitano:
reserved for future use
[Galaxy Note II General] jansuke:
I wish someone would trade his Note II for my SGS III :laugh:
[Galaxy Note II General] PierreTech:
Just bought mine on hk. Cant wait anymore:D
[Galaxy Note II General] jermitano:
how much is it in hk?
[Galaxy Note II General] jermitano:
kimstore is the first to offer a grey unit

https://www.facebook.com/photo.php?fbid=509932139036027&set=a.444818892214019.116644.119920974703814&type=1&theater
[Galaxy Note II General] PaulitoX77:
Whoa 31k for a grey market unit?

The actual retail price must be really close to that then.
[Galaxy Note II General] georaldc:
Gray market unit means no warranty right? I wonder if this will make a nice phone change from an s3 (s3 user here)
[Galaxy Note II General] PierreTech:
5698 hk dollars IN Broadway sir.:good:
[Galaxy Note II General] jermitano:
just a store warranty...but im guessing a manufacturer warranty is valid if used in the country of origin
[Galaxy Note II General] jermitano:
guys we have our facebook group...you can join and check it out...

https://www.facebook.com/groups/282448671865241/
[Galaxy Note II General] daimler1727:
I don't have a Note II but I'm dying to have one. I hope I'm welcome here. :)
[Galaxy Note II General] jermitano:
sure no prob
[Galaxy Note II General] O_G:
Thread Open​

A final solution is still in the works for availability threads, so in fairness, i will reopen this until that happens.​
[Galaxy Note II General] gtizon:
Galaxy Note II in the Philippines

Hi Pinoys! This thread was created to have an avenue for Filipinos to dicuss their Galaxy Note II experience. Please post in English! :)
[Galaxy Note II General] prinzhernan:
Hello! Nice seeing you here! I remember you from the other pinoy forums, sgs2 I think. Did you buy yours in the gray market or officially?