Java Security Issue - P3400 ROM Development

Whenever we open any Java app that uses Net Connectivity, it always asks for permission to connect. And if you use say gmail 10 times a day, you have to give permission 10 times a day . Any one knows how to solve it?

shaunak.it said:
Whenever we open any Java app that uses Net Connectivity, it always asks for permission to connect. And if you use say gmail 10 times a day, you have to give permission 10 times a day . Any one knows how to solve it?
Click to expand...
Click to collapse
That happens with unsigned jar files. Files which are signed do not show those warnings. Its normal. Generally manufacturers like Opera Software and Google provides both signed and unsigned jars but dont know how to get them. Cant find the URLs now. The reason they give unsigned by default is that on many devices signed jar files dont work.

Yeah, both google maps, opera, irctc mobile every thing I used is unsigned . Dont know where to find signed one either.
Read a thread somewhere in xda itself about modifying an xml file to get it done but now I cant find the post

Hmm.. I'll try to find some and the trick for unsinged ones too. If its an XML file, it should be there in my kitchen.
And BTW, Nice addition to your Siggy

Just a gentle reminder to noobs
Can u take a look at this:
http://www.1800pocketpc.com/2008/06/25/gc-java-pack-122-opera-mini-hassle-free-install.html

Already using the version opera 4.2 only For gmail, i prefer using pop3.

So finally the thread is stickey, now you and ankit will have more time to cook ROMs .

Related

Looking for Developer to...

Hi.
I was wondering how hard it would be to create a simple application that would connect to a server or website checking for updates. I plan on loading font .apk's on the server or website, and would like a application to periodically check for updates or manually check for updates, be able to preview the font, and then download the .apk if wanted. How hard would it be to create such an application?
Thanks.
Jzero88
jzero88 said:
Hi.
I was wondering how hard it would be to create a simple application that would connect to a server or website checking for updates. I plan on loading font .apk's on the server or website, and would like a application to periodically check for updates or manually check for updates, be able to preview the font, and then download the .apk if wanted. How hard would it be to create such an application?
Thanks.
Jzero88
Click to expand...
Click to collapse
Well, this depends on how you approach it, but I think the easiest way to do this would be to create a feed using XML. So if you were doing your font updater, you would load a file like this:
<FontDetails>
<Font name = "Font1" example = "http://www.myfontsite.com/FontExamples/Font1.png" location = ""http://www.myfontsite.com/Fonts/Font1.apk"\>
<Font name = "Font2" example = "http://www.myfontsite.com/FontExamples/Font2.png" location = "http://www.myfontsite.com/Fonts/Font2.apk"\>
</FontDetails>​
The problem with this is that you will have to maintain this XML file, making sure its always up-to-date(Easily manageable with some simple scripts).
If you aren't willing to do this, you could go down the road that is wrongly mislabeled as "The Easy Way" and hard-code the locations of all your APK's and all of your example images, but I would only do this if you were planning on dumping all the APK's and images in the same place(For example, if all your APK's were here: http://www.myfontsite.com/Fonts/). You would request the directory information from the server and parse that into your list of font APK's and correspond them with their example images(probably by naming them the same; i.e. Font1.apk and Font1.png).
If you decide to use the first option, you could do a bunch of cool things with the organization, like break things into categories and apply taggings and it would only require one request to the server per update. If you go with the second method, organization is guaranteed to be a mess if you try anything large scale, and adds a layer of complexity if you try to break things into folders and categories. This would require a ping per folder you have to check, which can have a high complexity factor if you have a lot of folders.
I just want to point out that even though this is directly related to development, this is a type of question that belongs in the General section(Questions ALWAYS belong in General). I'm sure a Mod will come around, scold you, then move the thread.
Anyway, I do hope this helps,
Good luck,
Tyler
Edit: Having a bit of problems getting the XML looking correct. Sorry if it looks ugly :S
Even easier would be to manage the updater as an RSS feed. Then it becomes quite trivial, as there are several examples of RSS readers online already.
Great! Thanks for the reply!
Yeah, the XML approach I think would be the better option as well, just because we could use this thread to hold everything I currently do no have any hosting at this time. Would you be up to making such a application? It seems you have the know abouts to so.... I would be the one to maintain everything and update it. I would monitor this thread and when new ones pop up, I wouldn't mind adding it to in the XML.
Also, how would the RSS feed work?
Thanks
jzero88 said:
Great! Thanks for the reply!
Yeah, the XML approach I think would be the better option as well, just because we could use this thread to hold everything I currently do no have any hosting at this time. Would you be up to making such a application? It seems you have the know abouts to so.... I would be the one to maintain everything and update it. I would monitor this thread and when new ones pop up, I wouldn't mind adding it to in the XML.
Also, how would the RSS feed work?
Thanks
Click to expand...
Click to collapse
Wish I could...I've got about 50 projects already on the back-burner and no time to finish them Tell ya what though...I've finished a mini project a couple weeks ago with some buddies at school for my friends website. Its an Open-Source RSS reader that was made to read in the latest articles of his site. With some slight tweaking, I'm sure you(or some other dev) could mod it to work in your favor...Here's the github address:
http://github.com/pencilo/Absolute-Android-RSS.git
I don't think this is the latest code, but all the working elements you need are in here.

World of Warcraft Mobile Authenticator on Windows Mobile!

I have seen several posts on this but I think I found an awesome solution for this issue. Usually they involve the deathcoil method and the problem I always had was that jblend or midlet manager would not accept touch input. This one works GREAT and accepts touch so no more messing around... heres the goodies.
What you need:
1. the Battlenet Mobile Authenticator jar file (easily located on rapid share or other file sharing services)
2. Java FX 1.2 for Windows Mobile Found Here (http://javafx.com/downloads/windows.jsp)
Copy the jar/jad file wherever you want ( I have mine on my SD Card) then install Java FX and open the JAR file. - Register and DONE! works great!
Some Annoyances
-- The print is TINY but readable
-- You have to sync every time you run it
THATS IT! Maybe someone can figure out a way to fix it the syncing or add a sync button - Maybe even figure out how to make the fonts bigger.
I run this on my Rhodium, it may look better or worse on lower res devices. If you find the same package I did for the jar files I tried both the hi and low res ones and they both looked the same.
I'm porting the Windows .Net versions I wrote over to Windows Mobile. Aim to get it working in 6.x and then 7.x shortly after.
It can handle multiple authenticator codes, import of an Android key (I use it as a alternative to my phone), syncs with Battle.net, email backup and stores the secret key encrypted on your machine.
Best, it's open-source, so you can check what it does and feel safer.
code.google.com/p/winauth
As always, I still recommend a physical authenticator device or even a non-rooted/non-jailbroken phone. But this is better than nothing.
Do you have any idea where javaFX saves the db file with the authenticator codes i installed with the original guide but now the sync seems off so i cant login to my account anymore cause i cant sync. if i can replace the codes withing javafx i might be able to sync with that and login without contacting blizzard to remove the authenticator
gamebifi said:
Do you have any idea where javaFX saves the db file with the authenticator codes i installed with the original guide but now the sync seems off so i cant login to my account anymore cause i cant sync. if i can replace the codes withing javafx i might be able to sync with that and login without contacting blizzard to remove the authenticator
Click to expand...
Click to collapse
On my device it puts it in \JavaFX\Java, in a file called "9004#token#Record#.db". The 9004 number is random, so could be anything, but look for a file with "token" in it. You can actually just read the serial and key straight out of it. No encryption.
I had added a Java key import into WinAuth and the Windows Mobile version, so you can copy it over.
http://code.google.com/p/winauth
-c.
Sorry i am a newbie.
what this is for ?
can i use this as a replacement of the real battle.net server ? i mean i am no need to connect online to play my game ?

Scripts for XDA_UC

I've been trying for the last couple of days to solve an issue (it's not really a problem) that has been irritating me for a while. The issue is that everytime i flash a new rom i have to spent a coupe of hours after configuring everything again. Now, I use the 6.5.x tree of NRGZ28's energy rom series, specifically the standard variant and i want to create some scripts that will automatically setup things like my exchange server, hotmail, opera user-agent string and wifi. I already have a script that is supposed to work for exchange (not tested it yet) and one for the wifi. The wifi one just doesn't work but i've just done some reading and i think i know why (More on that in a mo). So, i was wondering, has anyone tried this already? If so do you have the scripts that are needed or know where i can find them?
Now, back to the wifi script. The reason i believe it doesn't work is because it would appear that the wifi has to be on for the WLAN driver to accept the new configuration. Now when you install a new rom, as most of you will know, the wifi is turned off and those of you familiar with the energy rom series will know that xda_uc runs right after first boot allowing no time for the wifi to be enabled manually. So, i was thinking, is it possible to write some code that will enable the wifi at first boot so the configuration script will successfully modify the wifi configuration?
Thanks for your thoughts in advance guys and girls.
Have a look in the FAQ for the ROM and there is post for sample scripts. I used them last night and got hotmail and exchange working. Here's the link:
http://forum.xda-developers.com/showpost.php?p=7333558&postcount=19477
Check the FAQ - each time I re-read it I figure something else out.
lol and there was me thinking it would be a lot harder. i always skip past the faq because 9 times out of 10 they are always filled with things like "How do i flash a rom" etc but i do still have a feeling it's not going to cover all my questions, things like can i write some code to enable the wifi at first boot or some other things i haven't meantioned like can i write a script that will automatically configure omarket with my login details.
I want to go all out on this and have it set up so i have to do as little manual configuration as possible so some code samples and/or further pointer would be really handy.
Just had another look at the faq and found i already had the xml generator listed in the energy addons page. One small problem... I have no idea what the hotmail server configuration is. Any clues? if not i will google it later.
Got my hotmail script. No idea if it works, guess i'll have to test it at some point.
I'm still looking for info on how to enable the wifi at first boot. Although at this point i am open to suggestions on different methods that could be used.
I am also a little disappointed. i thought this one had more legs to it. oh well, you can't always get everything you want i guess.
Just a litlle update. I got the wifi to take the settings without turning it on. Well i say i did it when really it just seemed to work. i think it might have somethig to do with some new drivers that were cooked into the rom i use.
I dropped the hotmail script because i do actually use windows live fair often and i ended up with 2 hotmail email accounts in the email tab but with a couple of tweaks i did get my exchange settings script to work like a dream.
I'm now looking into setting the phone identity using a reg file. I gave it a go using a script i picked up but instead of doing what it was supposed to it just stopped the windows and HTC sms clients from working correctly and i can't figure out why (it caused the phone to create several undeleteable sms messages). I'll post the code at the bottom. I'm also wondering if it is possbile to have a script that will copy files (ringtones specifically) to the right location. I think XDA_UC will do this if you create the directory structure in a folder in the XDA_UC folder on the sd card (hope you followed that one). Can anyone confirm that? I also created a script to configure quickgps but that didn't seem to work, i'll post the code for that too.
I'm still wondering if it would be possible to configure the opera user agent string using some form of script or reg file and it would be really nice if i could something similar with BSB tweaks, agps, HTC location service and pretty much everything else tbh. So if anyone has any scripts, reg files or cab files they wanna share i will certainly welcome them and i'm sure that many others will too.
Anyway, to posting those reg files:
Code:
[HKEY_LOCAL_MACHINE\Ident]
"Name"="Lucifer"
"Desc"="HTC HD2"
"OrigName"="Lucifer"
Code:
[HKEY_LOCAL_MACHINE\Software\HTC\QuickGPS]
"auto"=dword:00000001
"actSync"=dword:00000001
"ExpiredTime"=dword:00002760
"remind"=dword:00000001
Check this out for reference [XDA_UC][UC][SASHIMI][S4X] S4X_Auto & S4X_Backup [AUG.10.2010] XDA_UC Mods & Answers
id some looking up on the device name thing and found this: http://msdn.microsoft.com/en-us/library/aa924188.aspx seems my reg key was a little wrong.
I've also managed to create a cab file that will install my ringtones and then setthem with all related options as the defaults. I know it's not very impressive but it's a step in the right direction. I think i may have a look at exporting the bsb tweaks settings later and see how that goes.
Oh one question: i have been looking for an .reg to xml converter but my google results all seem a little vague and i don;t know if can trust the programs i'm finding. Has anyone got any suggestions?
M3PH said:
Oh one question: i have been looking for an .reg to xml converter but my google results all seem a little vague and i don;t know if can trust the programs i'm finding. Has anyone got any suggestions?
Click to expand...
Click to collapse
I don't think you need to convert reg to xml. Just leave the .reg files in the XDA_UC directory and it should run automatically.
darkblak said:
I don't think you need to convert reg to xml. Just leave the .reg files in the XDA_UC directory and it should run automatically.
Click to expand...
Click to collapse
No, you're right. I have no idea what i was thinking.
Another little update. I have working reg files for opera ua string and quickgps. I've decided not to bother with bsb tweaks because it's so easy to setup but being able to preconfigure windows live would be cool. Also being able to preconfigure agps would be nice

[HINT] Accessing inaccessible APK files.

I hope this proves useful to someone, but especially noobs like myself! I've searched high and low for a a way to access and install apps that are either restricted by country (I'm in Vancouver, BC) or by device type of and up to now was only able to find references here at XDA that involve using VPN. If the following tip is already common knowledge and I somehow overlooked it, I apologize in advance.
Yesterday I ran across this article handy applet that so far has worked flawlessly for me:
Clearly I can't post URLs yet but the applet "Real APK Leacher" can be downloaded at:
www[dot]mediafire[dot]com[slash]?5vibfddvxmh98y
No need to install anything, but just unzip the DL into any new folder and run it directly from there. It does require Java Runtime Environment 1.5.0 or later. First time the tool is launched it prompts you for a DeviceID and associated account and P/W for the device. I used the DeviceID for my Galaxy S2.
(To find the DeviceID on a phone, enter [*#*#8255#*#*] (not including the brackets), and find the lines that begin with "JID="and "DeviceID-".
When I first ran the tool, I ran a search and got no results.. Found that the trick is to enter the search term(s) and then select the "custom" radio button. I've used the tool to successfully DL and install 1) Google Currents, 2) Onlive Desktop, 3) USAA Mobile Banking, 4) HBO GO, 5) Canada Post App, 6) UPS app, 7) Fedex 8) Hulu+ 9) all Amazon apps, 10) Realtor.ca, and many others. Till now I haven't run across any app I wanted that I haven't been able to install using the tool. Hope you have as much luck as I have with it.
After downloading the APKs to your computer desktop, simply transfer to the Prime via you're method of choice and install.
VancouverIngo said:
(To find the DeviceID on a phone, enter [*#*#8255#*#*] (not including the brackets), and find the lines that begin with "JID="and "DeviceID-".
Click to expand...
Click to collapse
And how do you propose we do that on our tablets?
leppie said:
And how do you propose we do that on our tablets?
Click to expand...
Click to collapse
or use the device ID app
https://play.google.com/store/apps/details?id=com.redphx.deviceid&reviewId=03899096149324352534
leppie said:
And how do you propose we do that on our tablets?
Click to expand...
Click to collapse
I tried to be as detailed as possible in my post (it was late, I was tired, perhaps I wasn't) which is why I went to the trouble of pointing out how I used my smartphone (the GS2) to carry out the procedure myself. I certainly don't claim to know exactly how the tool works behind the scenes, but I think it most likely needs to "fool" the source it accesses to DL the requested APKs into thinking the DL request is coming from a phone rather than a tablet.
In any case, there are probably many ways in which to retrieve a DeviceID. The method I went to the trouble of describing just happens to be the only way that I know how to do so. If you know of another... GREAT... use it. If not, then well, I think anyone frequenting these forums is probably clever enough to figure out/search for other ways.
In this day and age, I don't think that there are many tablet owners out there that don't also own or have access to a phone as well. In light of this fact, I assumed (perhaps unwisely) that readers of this thread don't require the same level of handholding/specificity that less tech-savvy members of the population might.
For those who've found other work-arounds to achieve the same end and are happy with their method, well, this post isn't meant for you. For others, like me, who've been seeking a simpler way, I truly hope you find the tool as useful as I have.
Running an unknown executable from a poster with no track record...can I just give you my CC# and SSN now and simplify things?
e.mote said:
Running an unknown executable from a poster with no track record...can I just give you my CC# and SSN now and simplify things?
Click to expand...
Click to collapse
Just googled the tool and seems it's getting quite a bit of attention; certainly not unknown. Favourable reviews/mentions from well known and respected sites. I In fact, I seems like someone here at XDA beat me to the punch in extolling its virtues ... found link to an active thread in the General Section.
While there are ways to check out executables of questionable provenance (particularly a Java applet on a PC) without endangering/in a secure environment, particularly when link to said executable comes from a noob poster such as myself, you are wise indeed to be cautious! For the adventurous among you, check it out at your own risk.
Searching on "real apk leecher" (note the correct spelling), it looks like this tool came out a week ago. It wants your email acct, password, and device ID. At least to start out.
From the screenshot, the apparent dev, Nhat Cuong Mobile, is a Vietnamese outfit with website here: http://nhatcuong.vn/. However, it's a mobile phone sales & repair site, and I can't find any info on software development (I can speak Viet).
If you do try this out, be extremely wary.
If you're rooted try Market Enabler (in the market), change to code to whatever network in whatever country, force close the market app (drag it to App info, and force close from there), then open it again, and voila Access to all the apps you couldn't access before.
adancau said:
If you're rooted try Market Enabler (in the market), change to code to whatever network in whatever country, force close the market app (drag it to App info, and force close from there), then open it again, and voila Access to all the apps you couldn't access before.
Click to expand...
Click to collapse
Will the Market Enabler app also open apps that are device specific? I. E., phone-only apps for tablets?

[Q] How to find the direct link used by Gmail when creating an account on Android?

Is there any way to find the "Sign UP" link coded in Gmail.apk ?
Can i paste that link into my Windows browser, and sign up like i do it from Android. ?
How to capture the web requests from gmail.apk?
Yes u r right. The link is coded in apk file but they use the source code to create the text box and other things.
Actually you may visit googles site and sign up on that.
You cannot do it like you are doing it on your android - based phoe .
HIT THANKS WHENEVER POSSIBLE OR IF I HELPED YOU...
ProgrammingExpert said:
Yes u r right. The link is coded in apk file but they use the source code to create the text box and other things.
Actually you may visit googles site and sign up on that.
You cannot do it like you are doing it on your android - based phoe .
Click to expand...
Click to collapse
what tools do i have to use to get the coded link used for sign up ?
I don't think you can paste the link into a windows browser but similarly you can just sign up through the web on any browser. Correct me if I'm wrong but the only reason I can come up with in taking the code and transferring it to another platform is for malicious reasoning, as in trying to trick someone into giving information that they otherwise wouldn't
I'm not calling you a malicious person, rather just trying to understand why you would want to do this
Sent from my Nexus 4 using Tapatalk 2
demkantor said:
I don't think you can paste the link into a windows browser but similarly you can just sign up through the web on any browser. Correct me if I'm wrong but the only reason I can come up with in taking the code and transferring it to another platform is for malicious reasoning, as in trying to trick someone into giving information that they otherwise wouldn't
I'm not calling you a malicious person, rather just trying to understand why you would want to do this
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
no no, there is no malicious reason.. i try to find a way to create gmail accounts with out phone verification..so that is the only way
As far as I know you just go to gmail on any browser, go through all the steps but skip what info you don't want to give as in mobile # and current email.
If Google only allowed people to make gmail accounts if they had a mobile phone they would be missing out, so just skip this portion as it shouldn't be needed to create one
Sent from my Nexus 7 using Tapatalk 2
demkantor said:
As far as I know you just go to gmail on any browser, go through all the steps but skip what info you don't want to give as in mobile # and current email.
If Google only allowed people to make gmail accounts if they had a mobile phone they would be missing out, so just skip this portion as it shouldn't be needed to create one
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
i have a static ip and already created 5 accounts without phone verification.. from android it works to create many more
im newbie can you please tell me if the coded link for sign up can be found in gmail.apk ?

Categories

Resources