yashsingh1/xdaforums huggingface dataset:
[Galaxy Y GT-S5360 General] Jonny:
Ha! I wish, to do for example the following in java

Integer i = 1;

if (i = 0) {
return "wtf is happening!";
} else {
return "everything is normal";
}

in smali would be something like:

const v1, 0x1

const-string v2, "wtf is happening"

const-string v3, "everything is normal"

if-eqz v1 :cond_0

return v3

:cond_0

return v2

My syntax is probably not correct but this was just something wrote off the top of my head so... :highfive: Point is what you can do relatively easily in java with a couple of lines of code can be a pain in the neck and take up a lot of lines to do in smali - especially with more complex functions.

For example I'd hate to have to try and do something like this in smali (code snippet from an app I've made for my school).

class LoadNews extends AsyncTask<String, String, String> {

@Override
protected void onPreExecute() {
super.onPreExecute();
mProgress = new ProgressDialog(getSherlockActivity());
mProgress.setMessage("Loading news, Please wait...");
mProgress.setIndeterminate(false);
mProgress.setCancelable(true);
mProgress.show();
}

protected String doInBackground(String... args) {
List<NameValuePair> params = new ArrayList<NameValuePair>();
JSONObject json = jParser.makeHttpRequest(AllNewsItemsURL, "GET", params);
try {
int success = json.getInt(TAG_SUCCESS);
if (success == 1) {
newsItems = json.getJSONArray(NEWS);
for (int i = 0; i < newsItems.length(); i++) {
JSONObject obj = newsItems.getJSONObject(i);
Integer id = i + 1;
String title = obj.getString(TITLE);
String story = obj.getString(STORY);
String imageSrc = IMAGE_DIR_URL + obj.getString(IMAGE_SRC);
String date = obj.getString(DATE);
story = replace(story, imageSrc);
date = buildDate(date);
if (id > dbhandler.getNewsCount()) {
dbhandler.addNews(new News(id, title, story, imageSrc, date));
} else {
dbhandler.updateNews(new News(id, title, story, imageSrc, date));
}
if (isCancelled() || FlagCancelled) break;
}
} else {
Log.e("JSON Response", "success == 0");
}
} catch (JSONException e) {
e.printStackTrace();
}
return null;
}

protected void onPostExecute(String file_url) {
mProgress.dismiss();
getSherlockActivity().runOnUiThread(new Runnable() {
public void run() {
getNewsList();
}
});
}
}
[Galaxy Y GT-S5360 General] mohamedrashad:
i'm just wondering why apk tool don't give us Java code :p The development would be easier :D:D
[Galaxy Y GT-S5360 General] Jonny:
That's to do with the Dalvik VM android apps run on. If you compiled standard java files (.java) for a standard java applet then those files would be compiled into .class files (which can be "reverse engineered" - though not particularly well and all reverse engineer software available for java currently should be used for guidance only as the code they output is nowhere near the original.

For android apps, these .class files are further compiled into a dalvik executable file with extension .dex - in an apk file this is called classes.dex. You can think of a classes.dex file as a compiled .exe file - you can't easily get readable/correct source of it. Exe files are therefore reverse engineered into their byte-code which is in a low-level language called Assembly Language (ASM).

Dalvik executables work in much the same way that they can be decompiled to their byte-code, which allows them to be edited without having the full source - unlike using a java decompiler, they give correct code for the language they are written in. The dalvik byte-code is the smali language so you can think of smali as the dalvik equivalent of ASM.

In short term, smali is editable and can be recompiled and run with no problems whereas code produced by current java decompilers cannot be used to make changes and then recompiled due to incorrect code given, so in this instance it was better for apktool to give a smali output :good:
[Galaxy Y GT-S5360 General] TheFixItMan:
[MENTION=4184142]Jonny[/MENTION]

Have a look at this tool I found - maybe useful maybe not

http://xdaforums.com/showthread.php?p=52853769
[Galaxy Y GT-S5360 General] Jonny:
That doesn't seem too bad considering the likes of JAD and JD-GUI, however, I can still 100% guarantee that if you put that into Android Studio (or Eclipse but I prefer AS), it would not compile ;)

Best to use decompiled java as a guideline or to search for methods you want to make mods out of - eg increasing the maximum number of pages in the HTC Sense 6.0 launcher (Prism.apk) you search for the method getMaxPageCount() in the decompiled java code, have a look at what the java was like then find out where to change the values and then do the actual mod in smali.
[Galaxy Y GT-S5360 General] mohamedrashad:
These apps (java decompiler) are good to learn some tricks in apps but non give a ready-to-import Eclipse project which make them 75% useless
[Galaxy Y GT-S5360 General] TheFixItMan:
I dont have any experience of programming so I dont know the use of these things but I spose Its interesting to compare

My main expertise is end user software/hardware support and repair for pcs/laptops - I just look at android as a hobby for fun as something different
[Galaxy Y GT-S5360 General] mohamedrashad:
You should learn programming, for pc or android, you are missing a lot of fun here :D
[Android General] xclub_101:
A friend of mine has sent me this video and is tempted to buy the phone given the dirt-cheap price level:

http://youtu.be/ErIMB0FBcNo

Has anybody tried one?

The battery seems to be a weakness :rolleyes:
[Android General] noulak:
Got this one since 2 weeks now. Battery is very weak as expected. Still waiting for a new rom to fix some minor bugs ( Annoying internet d/c when using wifi, overheating issues etc...) Can't complain much for the price :)
[Moto G General] abhifx:
Again taken something out of nexus 4 thread.

Generally our devices are performing poorly on custom ROMs.

by flashing and patching the dalvik patch (i am not using bionic patch here), the score on antutu on my gummy rom with render kernel boosted to 17328 (this is where two cores are offline).

before that i could barely touch 16700~

Link to thread

http://xdaforums.com/nexus-4/general/4-4-4-4-x-qualcomm-optimized-dalvik-t2546120

Link to patch

xdaforums.com/attachment.php?attachmentid=2620732&d=1394316359

Please try and report back (and of course this patch might be cheating with benchmark, but what do i care)

Also people with full cores online might get a better result.
[Moto G General] Lucas Eugene:
Hmmm.. Well I never believed in antutu for a true judgement of performance. But maybe if we try this on STOCK rom it would help more.
[Moto G General] abhifx:
The stock roms are already performing well, considering this is taken from moto x, i am pretty sure that moto g is highly optimized too with all the proprietary ****.
[Moto G General] Lucas Eugene:
better compile it using the new flags

http://xdaforums.com/showthread.php?t=2756231
[Moto G General] abhifx:
these are precompiled proprietary blobs. cant compile without the source code.
[Moto G General] abhifx:
Hmm... Nobody is trying it. Has anyone tried it on cm11?
[Moto G General] bogante:
I installed on Stock KK, apparently nothing is broken.

Enviado desde mi XT1032 mediante Tapatalk
[Moto G General] abhifx:
Any improvement noticed? frankly stock should not generate any improvement.
[Moto G General] bogante:
If you read the original post is most reliable ti work better on stock than CM11, i don't notice any improvement, apparently moto g is fine just like that, i think JB works better than KK.

Enviado desde mi XT1032 mediante Tapatalk
[Moto G General] abhifx:
that is because nexus 4 stock firmware is more close to AOSP and they might have avoided using these binaries. hence nexus 4 stock are getting better performance.

Since our case is different, where i am expecting the libs are already optimized, hence no effect. On the other hand the custom roms might get benefit.

This is all just my speculations.
[Moto G General] MrTomLegit:
Flashing the zip labeled for cm11 got rid of the boot lag on the latest PA beta 7. It is for real.
[Moto G General] abhifx:
woah.. this is new. Didn't fix the lag for me.. although antutu says a small performance gain.
[Moto G General] MrTomLegit:
I was using furnace kernel. It seems to be hit or miss. Sometimes when it boots it's smooth as butter but then it's slow sometimes. But I am noticing a decent performance increase for everyday use. Scrolling is about on part with ART.
[Moto G General] abhifx:
this is exactly what i was expecting. thanks for testing.
[Moto G General] Huidozz:
works on Moto G GPE? :angel:
[General Questions and Answers] alwindoss:
I am planning on building a device that would convert my old TV to an Android device.

I would prefer to use all the compatible hardware however I don't know what are the hardware that are compatible.

Also, I want a tutorial as to how to go about installing android from scratch.
[General Questions and Answers] jader13245:
set your old TV just as a monitor.

And your Android device needs output like mini-HDMI... and so on.

With a mini-HDMI transfer to composite video connector, then you got it.:D
[General Questions and Answers] pushkardua:
How would you get soo big touch screen and notification bar.. you would have yo litteraly wave you hand down omg :D
[Galaxy Y GT-S5360 Themes and Apps] AKSHATYOYO:
Galaxy S5 Weather Widget​

Hi Guys,

Today I present you the Galaxy S5 Weather Widget . I have modded YA Weather Widget at my best to make it look alike the real Galaxy S5 Weather Widget .

Please don't forget to press the Button below.
[Galaxy Y GT-S5360 Themes and Apps] mohsen01:
ScreenShot?
[Galaxy Y GT-S5360 Themes and Apps] RevolutionBolt:
Here,

See the picture below at attachment.

BTW, good work to contributor of this Weather S5 app. Nice UI and look good when decorated.
[Galaxy Y GT-S5360 Themes and Apps] mohsen01:
Can I remove the clock on the widget?
[Galaxy Y GT-S5360 Themes and Apps] RevolutionBolt:
Yes u can. But best appearances to look a full S5 widget, don't remove anything.

Just search at this forum, and u'll find it. I'm not really and don't have any project to build.
[Galaxy Y GT-S5360 Themes and Apps] maxxkumar:
Downlaoding fails

Hi,

Downlaoding fails every time...please provide some other link.....

Regards
[Galaxy Y GT-S5360 Themes and Apps] addyson:
I install this apk file corupt -_-, How?
[Galaxy Y GT-S5360 Themes and Apps] joshclaudio:
The widget is great :victory:

But, every time I open the App, it displays "Some critical files are corrupt, please reinstall the package!"

Is there any way to fix this?
[Galaxy Y GT-S5360 Themes and Apps] saltalabanca:
this is YA weather? because this app never find my city on argentina, please help
[Galaxy Y GT-S5360 Themes and Apps] omarmoro:
Good job , man :good:
[General Topics] tweakradje:
These registry entries control wmvdecoder.dll behaviour when playing WMV content on Windows Media Player 10. The keys are almost the same as they exist on the XP PC. You can use RegMon.exe to examine them on the PC. Some values are a little different.

The values starting with _ are not active.

"Post Process Mode" can range from 0 (no) to 4 (max) and when -1 it goes into auto mode.

[HKEY_CURRENT_USER\Software\Microsoft\Scrunch]

"Force Post Process Mode"=dword:00000001 ; obvious

"Adapt MHz"=dword:00000000 ; adapt the CPU clock frequency?

"_Current Post Process Mode"=dword:ffffffff ; this key should always be -1?

"Adapt QPC Level 0"=dword:00000014 ; ?

"Adapt QPC Level 1"=dword:00000028

"Adapt QPC Level 2"=dword:0000003c

"Post Process Mode"=dword:00000000 ; mode to use now

"Count CPU Cycles"=dword:00000000 ; ?

"_Adapt Post Process Mode"=dword:00000001 ; make it dynamic (works on PC)

"Omit BF Mode"=dword:00000000 ; ?

"Fake Player Behind"=dword:00000000 ; ?

[HKEY_CURRENT_USER\Software\Microsoft\Scrunch\Video]

"Bitrate"=dword:00000100 ; 256 kbs

"_Resolution"=dword:00014000 ; ?

So a lot of unknows in the equation here.

Also GAPI is used with WMP. I will place the keys tonite.

Still experimenting with the \windows\gxdma.dll (see attachement)

(\windows\gx.dll should be present in ROM)

WMP looks up these registry entries.

It can use GDI or GAPI.

[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]

"RenderGDI"=dword:00000000 ; use GDI instead of GAPI?

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\GAPI]

"Buffer"=dword:00025800 '; 320x240x2

"DeviceID"=hex:\

01,00,02,00,E6,4C,B4,6D,32,33,32,39,30,37,14,14,09,04,01,02

"cbxPitch"=dword:00000002 ; pixel shift in buffer for 1 x pixel on screen

"cbyPitch"=dword:00000640 pixel shift in buffer for 1 y pixel on screen

"cBPP"=dword:00000010 ; 16 bitsperpixel

"cxWidth"=dword:000000f0 ; 240 pixel

"cxHeight"=dword:00000140 ; 320 pixel

"ffFormat"=dword:000000a8 ; have seen A0 as well

These values are a big dunno. Got them from a SNES emu site.

Also the DeviceID is hard to find. I just copied the

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing\HardwareID]

"ClientHWID"=hex:\

01,00,02,00,E6,4C,B4,6D,32,33,32,39,30,37,14,14,09,04,01,02

Then you can put gxdma.dll in the \windows directory. Still investigating if that is improving performance.

I also try to use divx codecs with WMP10 CE. It can be done.

To be continued

Cheers
[General Topics] TheBrit:
And they look exciting because....?
[General Topics] schriss:
Any news? It's interesting :)
[General Topics] jcb_home:
buffer Size

So do you know if there is a Reg Key to increase the buffer size for streaming video?

Yhanks
[XPERIA X10 Q&A, Help & Troubleshooting] Pegadroidx10:
X10 Specipication

Internal Storage 1GB

384MB RAM

8GB MicroSD

==================

This Right?

but my SE X10 Show Total Space internal Storage is 470 MB ?:crying::crying:

Please help
[XPERIA X10 Q&A, Help & Troubleshooting] przemo2011:
this is normal, true that specification says 1GB, but for user apps its only 470MB
[XPERIA X10 Q&A, Help & Troubleshooting] Pegadroidx10:
but when i use my hp to browse (connect to internet) after some time, my x10 restarting.
[Moto G General] Lucas Eugene:
Hi Guys just found a great little commit for compiler flags. If we use these flags for compiling our ROMs would be a lot better :good: :good:

Good Luck Compiling :)

[MENTION=4112553]dhacker29[/MENTION]

[COMMIT] [AOSP] JustArchi's ArchiDroid Optimizations - Increases performance up to 6x
[Moto G General] Lucas Eugene:
Anyone tried it yet :p
[Moto G General] pico hackr:
Ya justArchi's method really works great tried cm 11 in my htc pico using his optimizations . it makes my device daam smooth and snappier. Someone should try compiling a rom for our moto g
[Moto G General] Lucas Eugene:
Yeah bro it worked even on the hd2 someone please do it for the moto g
[Moto G General] rr46000:
I'll do it later today

Omnirom
[Moto G General] Lucas Eugene:
Aaah Thanks.

That's great send me the link when done :)
[Moto G General] fabus:
Hi,

I am also interested in it, please send link by pm :)

Wysłane z mojego Moto G przy użyciu Tapatalka
[Moto G General] rr46000:
I

Big downloads came up during repo sync

So it will take a while

And I have my classes tomorrow so won't be able to build during the day will build again tomorrow night at 8:30 pm IST
[Moto G General] rr46000:
Done [emoji1][emoji1][emoji1][emoji1][emoji111]

Anway I didn't notice any difference

Maybe its a placebo

Or it is me

Anyway, I'll build again right now, fix some ugly errors and if u want to test it

PM me
[Moto G General] immortal_yash:
Try making a clean build :) and can I get your help on evervolv rom?? I made a build but ril, WiFi, Bluetooth, audio is broken... Camera working fine with rest all thing....
[Xperia SP General] ahonda55:
Hello, I am new to flashing and rooting and so, small question please, is there any custom ROM that supports Arabic language??

I mean to read Arabic characters and write with Arabic keyboard, not arabic interface.

If you know any Arabic supported ROM please tell me about it..

Thanks a lot in advance :)
[Xperia SP General] UltraWelfare:
Most of the ROMs out there are multi-language
[Xperia SP General] ahonda55:
Thank you sir :)
[Xperia SP General] UltraWelfare:
I would apprieciate if you could click the "Thanks button" located at the bottom of my post..

Have a nice day :highfive:
[Xperia SP General] SKA67:
training for this

http://xdaforums.com/showthread.php?p=52923889
[Xperia SP General] Dashing_97:
hey

hey :D
[Omni Q&A] rr46000:
I'm building omni rom for falcon(moto g) using these repos for falcon

https://github.com/pinkflozd?tab=repositories for falcon resources

and for blobs

https://github.com/DonkeyCoyote/proprietary_vendor_motorola
[MENTION=591147]Entropy512[/MENTION] please help

but i get this error while compiling

target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int16Arr.c
hardware/qcom/keymaster/keymaster_qcom.cpp:32:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int32Arr.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int8Arr.c
build/core/binary.mk:432: recipe for target '/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o' failed
make: *** [/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o] Error 1
make: *** Waiting for unfinished jobs....
rohan@rohan:~/android/omni$

but the msm_ion.h is there in /home/android/omni/kernel/motorola/msm8226/include/linux
[Omni Q&A] Entropy512:
Since you're not using Omni's repos, no help. I have no idea what that guy might have broken.

However I think building display might currently be broken and in need of a kernel update... I just noticed falcon builds were broken a day or two ago. (I've been focusing on bringing up Find 7a, and some of the updates for F7a may have broken Falcon)

But I've never had any issues with keymaster and haven't touched keymaster at all.
[Omni Q&A] rr46000:
I compiled with the help of [MENTION=2225255]herna[/MENTION]

But still there is a audio bug(sound does not work)

Although he is still working on it
[Omni Q&A] ilpolpi65:
O.T :

no chances omni for hlte ?

Thanks for your great job !
[Omni Q&A] Entropy512:
Only if a new maintainer steps up.

You won't be seeing it from myself, maxwen, or xplodwild, that's for sure.
[Omni Q&A] ilpolpi65:
could you let me know what u did for keymaster error ?

many thanks !
[Omni Q&A] rr46000:
I tackled it with by using keymaster if cm

Bit I'll look into the error tomorrow and fix the error
[Omni Q&A] Entropy512:
OK, I figured out what was going on.

I have no idea how, but I had a patch in the keymaster repo that was not showing up in "repo status" or anything like that... So all of my utilities said I had an unmodified keymaster identical to what anyone freshly syncing would have - but I didn't! REALLY weird.

So I'll work on fixing that up over the next few days.
[LG G2 Mini] GNT00Q:
Just finally got my new LG G2 mini!

Just that when I just came across a problem. I don't think the GPS is locking on. But the funny thing is that my location moves ( like it miraculously locks ) when I access the Maps application. So I got curious and then Installed GPS status and it shows me Looking for GPS location with the SAT showing 0/22 or 0/21. I even tried to download GPS Assistance Data and no fix done. For I also play ingress, I do need to use the GPS to play it.

Is it a problem with the Phone or the Apps I have installed or maybe its a problem with the OS?

PS. I also tried connecting to Wifi outside via a wireless modem and GPS Status shows me 1+1/22 for a second and then back to 0/22

Yelp.
[LG G2 Mini] dirk123:
Also a GPS Issues

Hi,

I also have a LG G2 Mini and have the same problem...

THe Phone finds a lot of satalites but does not lock on the the position.

Need to wait a long time for it has the position.

Resetted the Phone etc. but no luck.

Hope someone can help?
[LG G2 Mini] rozsi71:
I have same problem. I think, it's a bug in software. Maybe fix it.
[LG G2 Mini] GNT00Q:
Just received a software update but it was only for apps.

Oh no... The GPS just became a little bit worst than before when setting to high accuracy. The GPS icon is not turning white every since then. Unless I set to device only.
[LG G2 Mini] godmustbemoe:
my phone gps works fine until I recently installed this http://xdaforums.com/showthread.php?t=1685726 ,

but now it wont set any location at all :(

I was hoping by installing those gps fix will fasten the locktime
[LG G2 Mini] mandrive:
SIM1 Problem LG G2 Mini

i have problem with my new LG G2 Mini

sometimes SIM1 signal disappears for no reason

hope LG fix it with new update next time

and also it's happening with my LG L90 , same problem :(
[LG G2 Mini] jareeq:
Me and my girfrend have two of this g2 mini

1. my (black ;)) loses fix everywhere - in car i must place it under the mirror because if i grab it to hand it lose fix under the roof of the car.

2. her white always make fix first and signal stench is about 3-5 points better (measured with GPS test app) but i never checked it in car

In opposite 3 other devices :

htc HD (sic!) (only gps no glonas),

galaxy gio (only GPS no glonas),

asus memo pad 10

obtains fix as fast as white g2 mini but signal is always stronger by next 4-5 points (hd is windows stuff so app is different)

htc hd can be putted to pocked and still works ...

So basically there is something wrong with g2 mini it obtains fix much slower and probably have problems with antenna or gps strength.

I got 10 days to resign from it so probably i will go this way
[LG G2 Mini] amythos:
It's the same for me. I got a black G2 mini and when I have the device near car's window the GPS signal is slightly better but it still loses signal from time to time.

Using my previous device a Sony Neo V GPS it works prefectly. I sent the device to local service but they returned it to me that it works properly.

Unfortunatelly the days to resign have passed for me.
[LG G2 Mini] jareeq:
Some people on forums said you can use fix from nexus 5, but the approach must to be differ because antenna is not located on back cover (there is only lte antenna visible). Some plus is that you do not need to use extra torx but simple small +. Anyway if you are on warranty go this way.