[Q] Editting APK files / Browser - Nook Color General

One of the things I've been trying to do is get a browser to always load the google mobile version of a website (basically load http://google.com/gwt/x?wsc=URL_GOES_HERE).
I know enough java that from the stock browsers source files that all I have to do is edit line 649 in BrowserActivity.java to say
url = new StringBuffer(url).insert(0, "http://www.google.com/gwt/x?wsc=%3a%2f%2f").toString();
however when i try to load the browser source files into eclipse I get about 500 errors due to dependencies on other java files built into android. If anyone could either
a) tell me how to compile the updated browser
or
b) tell me a browser that automatically loads the google mobile version of websites
i'd greatly appreciate it.

apktool(http://code.google.com/p/android-apktool/): unpack/rebuild the binary apk file directly.

arda99 said:
apktool(http://code.google.com/p/android-apktool/): unpack/rebuild the binary apk file directly.
Click to expand...
Click to collapse
How can I convert it to source while using that. When I do the source files are all in smali not java, which have different code (and much less, making believe its not even fully decoded)

yes, its not java but you should be able to find the corresponding string and just modify/repack. I didn't check the specified browser file hopefully it works.

arda99 said:
yes, its not java but you should be able to find the corresponding string and just modify/repack. I didn't check the specified browser file hopefully it works.
Click to expand...
Click to collapse
I couldn't find the correct line I wanted but thanks for trying. A temporary solution i've found is to set google.com to its on gwt version and then just search for url's rather than enter them. Links retain the gwt format so its a sort of work around for when I want a faster browser (pages load much faster using this method and the formatting is a bit better if you wish to zoom in on text)

Related

Opera default download location

hi
i sometimes download files via opera and i use the open option, but opera keeps a copy in the /windows folder, which means i gotta keep cleanin dat folder otherwise my main memory gets full..
1. Is there any way to change the download folder to internal memory?
2. Havin the same problem with the default bluetooth incoming folder
3. How do I check if i'm using the latest Opera version?
im using stock 1.93 wwe rom.
Thanks in advance...
If you just press open then it will download to a temp directory, but it should delete it after opera closes unless you keep it open when you close opera
maybe im usin an outdated version becoz whether the downloaded file is open or not it keeps a copy in
Code:
\windows\opera9\download
directory.
im using ver 9.5 build 1522
rm501 said:
maybe im usin an outdated version becoz whether the downloaded file is open or not it keeps a copy in
Code:
\windows\opera9\download
directory.
im using ver 9.5 build 1522
Click to expand...
Click to collapse
Bump. Looking for the same answer. Just realized there are a bunch of cab files in my Application Data\Opera9\download folder, even though I save my cab files to My Storage when asked.
you can change this by typing:
Code:
opera:config
in your adressbar in opera, you'll get a bunch of options there
Prewien said:
you can change this by typing:
Code:
opera:config
in your adressbar in opera, you'll get a bunch of options there
Click to expand...
Click to collapse
Unfortunately, download location isn't one of them. I did figure this out via Download Squad.
Change your download directory:
1. Edit the Opera.ini file
2. Under [User Prefs] change "Download Directory=\My Documents\" to another directory on your device or storage card
Click to expand...
Click to collapse
My .ini file didn't have a download directory setting, so I created one.
Downloads pref
There's a "Save Dir" setting under Saved Settings in Opera:Config. I think that's what you're looking for.
Oddly, though, all my files seem to be going to \MUSIC, which I don't understand, especially since the Save Dir is set to \Windows\Opera9\download...
Anyone know what's going on with this?
Edit: Aha! Figured out my problem. In Opera:config, in the User Prefs section, there is a Download Directory setting which actually sets where things are downloaded. I'm not sure what the Save Dir setting does, especially since there seems to BE no \Windows\Opera9\download directory...
The problem is that only official builds ALWAYS support this feature, imho. F.e. 15954 doesn't saves the files into directory specified in "Download Directory" as default.
what works for me
Hi I realise this is an old thread but maybe some people, like me, are still searching for more memory on their Omnia.
Changing the download location for Opera didn't work for me - couldn't open the files once downloaded. So I kept the same folder and there are two ways to clear it.
1) when you finish looking at the attachment, it should bring you back to download screen, where you can select delete (sorry that's not much help)
2) easier - Download ClearTemp and change custom folder 1 to \Application Data\Opera 9\Downloads\. Added benefit that it clears other things that build up too. And there is a check box to clear automatically when you start up, so you don't even need to run the programme.
Another hint, when you can't get text messages through as there is not enough storage memory, go to task manager and end all tasks to free up a couple of megs (I find this also saves battery life).

Opera Mobile opening cab files as text

I have this problem with Opera Mobile 9.5 where I try to download a cab file to install on my phone but it instead opens the cab file as text. There isn't a "Save file as" option in the menus so how can I download the cab file without opening it as text?
Type in opera:config and check through the settings, or you could reinstall.
Guys I am having this problem also and need to fix it.
The thing is when I type :config in Opera and try to log into settings nothing happens. Please how can I remove that **** Opera off my phone?????????
Need to install all the cabs that I need...
Any help would be appreciated, thanks
I have never had any problem downloading anything with Opera... Actually, I tend to try and use Opera to download with because it's download manager works so well.
It sounds like you have a setting off somewhere in your phone... probably with Opera, assuming you can download with IE just fine.
Also, you want to type in the address bar "opera:config" without the quotation marks, and that is where you will find the advanced settings that control downloads with Opera.
As well, maybe try downloading a different version of Opera? I like this one:
http://www.mediafire.com/file/ywydu3iczxn/WM6_PPC_HTC_Opera9-build_15954_WWE_QVGA.CAB
That is not what I mean.
I downloaded files throught my PC, hooked Omnia to it and copied the files to the phone's SDcard.
The cab files of all progs are "branded" Opera. meaning if you want to run them, they open through Opera and not execute style. Got it?
SilverSpear7 said:
That is not what I mean.
I downloaded files throught my PC, hooked Omnia to it and copied the files to the phone's SDcard.
The cab files of all progs are "branded" Opera. meaning if you want to run them, they open through Opera and not execute style. Got it?
Click to expand...
Click to collapse
Ah, ok... I don't think that is the same problem they were having... I don't know what the solution to that would be, since a .cab file is an .exe file written to run a PPC, thus when you click on it, it should run itself without any other program opening it...
I would say try downloading the cab files directly on to your phone with the built in browser, save them to your memory card of course...
But if you are copying a .cab file on to your phone, and using file explorer to launch it, there is no reason it shouldn't work, it is a self executing file that doesn't look for a mother program to run it... Unless somehow you have managed to change them so that they try and open with Opera, either through your phone settings or properties of the cab itself type thing.
I think I have no choice but to disable or uninstall Opera in some way.
If someone can help me to do this, I think I can manage with the cab files then...
I don't think that will fix your problem. Those files will still be linked to Opera. And if Opera is part of your ROM, you can't uninstall it... actually even if you loaded it yourself, unless you did one of the uninstallable versions, it can't be uninstalled...
At this point, it would help if you gave more information:
What, if any mods, you have done to your phone?
What program did you use to copy the files to the SD card?
Where did you get the cab files?
Heck, what cab files are they?
These mods:
http://www.samsung-omnia.org/how-to/howwhatwherewhichwhywhen/
And the cab files are related to advanced configuration tools, Omnia patched dialler, SPB mobile shell and a couple others.
You might want to ask that forum for assitance? It looks like they are pretty dedicated to the Omnia, which most everyone here does not have one. This forum is for the HTC Kaiser specifically, and the site as a whole is dedicated to HTC devices. Perhaps post in the general section of this site, but I think you will have better luck with the omnia site you got all of your cabs from.
In general, without having screen shots, or hands on knowledge of the cab files you are trying to use, about all I can say(and anybody really) in this forum is that there is something corrupt with the .cab files or your file explorer is corrupted. I would bet the .cab files are corrupted, and that somewhere along the way you did something wrong. Maybe you skipped a step in the whole process, and Opera is coming up not because they are tagged to run through Opera, but because it is suggesting to search for something using your default browser.
It really is hard to say, but I would suggest asking that forum for some support. Also, I would flat out re-download all the cabs straight to your phone from the site, not your computer. This will make sure you don't have any issues with the sync process. As well, save them to the root of you SD card, in other words not in a folder.
Sometime i got this problem but it seem it happen when the page is not fully loaded
Do you open cab files through Opera?
Open link in new tab
Hi
I have also had this problem with opera version 9.5.16277. I have found a couple of work arounds:
1) Tap and hold on the link and then select "Open in new tab"
2) Tap and hold on the link and select "Copy link location". Then manually open a new tab and paste the address into the address bar.
I have found that if 1) above does not work 2) will.
Cheers
andrew-in-woking
Sometimes it's the website itself.
For example, for Josh's Test ROM, if we click directly (even on PC) on the link, it'll open the zip file on the page. I had to 'right-click' and 'save the link as' to save the file.
It might be some code on the page ..
Input the two .reg files to the registry, should just solve the problem. You can use any regiedit tools or taskmgr.exe or total command to do it. If don't know how, please search some info first.
Skrp said:
Input the two .reg files to the registry, should just solve the problem. You can use any regiedit tools or taskmgr.exe or total command to do it. If don't know how, please search some info first.
Click to expand...
Click to collapse
The above is my answer to origional poster of this thread.
But since this thread is already goes to off-topic, I would also write my comments:
Opera opens compressed file as text on page, is a big bug for opera software, it happens to both its mobile and desktop vdersions. But latest releases of Opera Mobile seems have some progress on this issue, although still can not completely avoid it.

How to unpack apk file

Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
apks are just zip files. Set them to open with your archive manager or change the extension to .zip. All applications install their settings into /data/data/%PACKAGENAME% where %PACKAGENAME% is the Java-style package name of the app.
Ugh, no need to use the evil "R" word here. You're going to give us nightmares!
Each application stores its configurations/settings in its home directory in /data/data as pointed out by the previous poster. You might want to bone up on 'sqlite3' as most configuration settings tend to be stored in such databases.
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Note that depending on what you are trying to do, the config files may or may not be able to adjust the property you're after. No matter what, the program itself must support what you are trying to do (this goes for ALL OS's -- you simply can't change something that is irrelevant and expect it to do what you want) and more often than not, the ability to adjust that property would be presented by the program itself.
That is, of course, not to say that manually adjusting the config files is useless, because there IS a lot you can do directly from the config files.
alex_time said:
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Click to expand...
Click to collapse
Er, delete please
Modify an " .apk " file in " .exe " file
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
ccpgclap said:
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Click to expand...
Click to collapse
No, they have absolutely nothing in common.
Modify an " .apk " file in " .exe " file
Originally Posted by ccpgclap View Post
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Originally Posted by RubenGM View Post
No, they have absolutely nothing in common.
Originally Posted by ccpgclap View Post
But I have found this and it doesn't work ....
Download APK2EXE and NSIS install system
Follow these steps to create your executable!
* Extract APK2EXE to a new directory
* Add your APK to the directory
* Doubleclick APK2EXE.NSI and edit the 3 lines containing information about your application.
* Right click the NSI file, and select 'Compile NSIS Script' - this will create your install EXE
* Done!
And it is a .apk to .exe converter !!!
Can anyone tell me why it doesn't work ? Many thanks
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
boostnek9 said:
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
Click to expand...
Click to collapse
shouldnt be too tough. just make a executable file that installs and configures adb, allows user to select apk or select a folder of apk's, create a .bat file that tells windows command prompt adb push the .apk to the sd card, then adb install /sdcard/nameofapk.apk
simple enough!
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
RichCowell said:
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
Click to expand...
Click to collapse
apk manager will let you
Asadullah said:
apk manager will let you
Click to expand...
Click to collapse
Thanks for replying, I've had a go with that and extracted / decompiled, compiled, signed, and that doesn't work, when I try to install the newly created apk it still tries to overwrite it...
I've watched the vid and read the comments but haven't worked it out yet... Can you point me in the right direction about which bit to edit?
i think you need apktool
Cool, I'll look into that... Any pointers on how to do it once I've got apktool?
command line usage, this tool unpak and repak

What is a mirror?

In relation to ROMs, what is a mirror? I see that on there a lot and don't know what they are and what purpose they serve.
Mirror is not a ROM term at all, but a web term. A mirror is a server that is hosting a file for download. The idea is that in order to either reduce load on the original server or expedite the download by allowing you to choose a server closer to you. The term mirror is derived from the idea that it is a remote server with an exact copy of the original file. Because of the mirror system being out of the original content provider's hands, a checksum of the download is usually provided to help ensure that the file has not been modified in any way.
lineman78 said:
Mirror is not a ROM term at all, but a web term. A mirror is a server that is hosting a file for download. The idea is that in order to either reduce load on the original server or expedite the download by allowing you to choose a server closer to you. The term mirror is derived from the idea that it is a remote server with an exact copy of the original file. Because of the mirror system being out of the original content provider's hands, a checksum of the download is usually provided to help ensure that the file has not been modified in any way.
Click to expand...
Click to collapse
Awesome. Thanks. Do you know how to check the 'checksum' or 'md5sum' as I've seen it? I'm working on the MacOS platform.
BTW - do you know how to get a term added to the glossary?
Not so sure about the "checksum" thingy, try searching the forums??
However, adding a word is as simple as going:
Settings > Language & Keyboard> Touch Input> User Dictionary> Add New OR you can just spell the word when you're texting (for example) and click the correct spelling instead of the suggested spelling, that adds it too.
Awesome. Thanks. Do you know how to check the 'checksum' or 'md5sum'
Click to expand...
Click to collapse
On linux and windows you go to file directory and type md5sum {file name}. Couldn't see it being different for mac, don't forget the .zip, .apk, etc. at the end of the file name.
Sent from my ADR6300 using Tapatalk
On mac the command is md5 (filepath)
HeroMeng said:
On mac the command is md5 (filepath)
Click to expand...
Click to collapse
I don't have my UNIX book in my office, but this sounds right. OSx is based on FreeBSD, so it has a md5 utility built in. Just open up the terminal and type the above command. On windows, you will need to download a project called unixutils, which can be found on sourceforge. The command is md5sum {filepath}. But in order to get this working you will either need to provide the location of md5sum.exe or add the wbin folder from unixutils to your path environment variable.
I have Mac and if I type for example this:
Code:
md5 /Users/kevinsimac/downloads/darchdroid-v265.zip
it returns
Code:
MD5 (/Users/kevinsimac/Downloads/darchdroid-v265.zip) = 9a7af785d5ba97bbbac1ea044c99b420
What's the whole purpose of the md5 in relation to our work here?
jerry43812 said:
What's the whole purpose of the md5 in relation to our work here?
Click to expand...
Click to collapse
As I explained above, the MD5 is usually included for files hosted on a server other than the content provider so that you can ensure that the file has not been modified. For example, I could volunteer to be a mirror for Fresh and if flipz didn't post the md5, I could add an apk into system that could do something like send me your location or a copy of all your e-mails or something else and you wouldn't know that I had modified the file since flipz handed it off to me.

apk to aab (help with app bundle future problem)

Hi, can anyone advise me on this -
I've had an app in the playstore for a very long time, I don't have the code for my app as i lost it years ago, but have never had any problems editing and updating the app using apktool or sometimes apk editor, then resigning and uploading each update to playstore with the developer console.
My worry is google's ambition to eventually force everyone to upload only aab's (app bundles) rather than apks.
Is it possible to import my apk into the latest android studio and convert it to .aab bundle without the code?
If this is not possible, is there any other method to convert my .apk to .aab?
Any help is greatly appreciate, regards.
its possible 100% to make aab from apk i have compiled 3 4 apps
1.Decompile apk and copy res[folder] and Androidmanifest.xml into folder
2.Compile each resource into .flat file with aapt2 compile [path] -o outputfolder/
3.Use aapt2 link command to generate apk thats contains resouces.pb and manifest in protobuf format
Create base.zip put search for how to put files in it on Google
Use bundletool Build-bundle command to Create aab
or
use apktoaabconverter.com
philsilvers said:
Hi, can anyone advise me on this -
I've had an app in the playstore for a very long time, I don't have the code for my app as i lost it years ago, but have never had any problems editing and updating the app using apktool or sometimes apk editor, then resigning and uploading each update to playstore with the developer console.
My worry is google's ambition to eventually force everyone to upload only aab's (app bundles) rather than apks.
Is it possible to import my apk into the latest android studio and convert it to .aab bundle without the code?
If this is not possible, is there any other method to convert my .apk to .aab?
Any help is greatly appreciate, regards.
Click to expand...
Click to collapse
send me email [email protected]
I have a complete apk to abb solution
See my article for details
滑动验证页面

Categories

Resources