%20 needed in name of asset html file - Android Apps and Games

I downloaded an app from the market: Prabhupada. It comes with some html files stored locally that are accessed through the app's menu system. The app worked fine on an LG phone (can't remember which one), and it works for the most part on my rooted LTE Galaxy Nexus. However, it can't access the html file assets with spaces in the names.
After some tinkering, I disasembled the app apk and went into the asset folder and started to eliminate the spaces in the html files, replacing the spaces with '%20' (without the quotes) codes. This seemed to fix the issue.
I don't know if it is an issue with:
-Ice Cream Sandwich
-rooting/unlocking
-the app itself
My guess is that it might be an ICS issue. I emailed the developer and haven't heard back. Any ideas? I don't know Java, but have successfully completed a few android sdk tutorials, so my understanding is minimal... hopefully will learn more soon!

Related

(REQ) Folder ReDirector

Looking for a simple app, that can redirect files to a spec folder, for example. Handcent has a subfolder in which it saves files from picture or videos. I would like something that would keep items saved in designated folders. Ie. /Handcent/download folder redirect to dcim/100media/
I've been wanting to test usage of symbolic links on my android device, but never get around to it.
I've found symbolic links to always solve my problems on a pc, so perhaps this is am option for android os, too..
i did some research, seems this is possible.. any one out there any ideas?
we used a symlink for adfree android before we had S-off, so symlinking is definitely doable.
Any input anyone?

Disable smileys/emoticons on HTC One X?

Okay, well today, I picked up a new HTC One X. First impressions were pretty good, and I have to say that as of yet, it's looking like it's a pretty good handset.
However; there's one thing about it that really bugs me. SMS messages apparently force you to use these utterly horrific smileys. I was never a fan of the old android icons that occasionally popped up, but these icons are just plain god-awful. Is there any way of disabling them?
(To be honest, I'd much prefer just to have your standard ASCII faces... Not to mention, if you happen to need to send a message that just happens to have the characters in that order, I'd rather not have badly made face icons appearing in the middle of it..)
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
thanks for this nice q
3lliot said:
bump. I can't believe htc require you to install a 3rd-party sms app in order to be able to get rid of emoticons. I'm a 40-yr old man, I don't want to see a crappy cartoon face in my text messages...
Click to expand...
Click to collapse
My thoughts exactly... Not to mention, they're so badly designed that I spend more time working out what emotion they're actually supposed to convey, rather than reading the actual message...
Seems slightly out of place, too. The rest of the UI is nice and clean, fairly sleek looking - then you have these ridiculous cartoon faces slapped accross all of your texts..
I'm going to go ahead and bring this thread back from the dead.
Last time I tired to fix this by modifying my framework files and ended up soft-bricking my phone.
There's got to be a better way.
bump?
Untested Solution
EDIT: I looked more into it, and it gets pretty complicated. According to a StackExchange post I found (link in the attached .txt file), you can go through a process to retrieve the source code from the original .apk file BUT it requires the classes.dex file to be intact. That means you have to de-odex the Message+Nonprime.odex file, "re-dex" it into classes.dex, and add it to the Message+Nonprime.apk archive (can simply change the extension to .zip and add the file before continuing the linked steps).
After following all of those steps, I ended up with the source code and readable XML files. Unfortunately, trying to open them in Eclipse does not work, as I'm apparently missing key HTC resources (or I just don't know where the resources files should be pointing). I was hoping for the ability to just change the name across any necessary files, then repackage, but it doesn't seem to work like this.
I've also tried taking the original APK, adding the .dex file (created from the .odex -> files/folders -> dex process) inside, and signing the package (after deleting the META-INF folder containing HTC's signed information). I was hoping that signing the package after renaming it to Message2.0.apk would allow me to install it as a user application (I don't have root or the ability to change the bootloader to overwrite system applications, due to the 4.2.2 update) but the install always fails since "the application is already installed." If I knew how to modify the files within classes.dex properly, I'm sure I could rename the entire package and create a "New" application, but for now I've hit a brick wall. Hopefully if anyone reads this they can build on my failed attempts.
======================================================
======================================================
I stumbled on this (admittedly old) thread, and I don't know if anyone cares, but I've figured out what seems to be key in disabling smiley images from appearing. Below is the information of the phone I'm working with:
Phone Model Number: HTC One X
Android Version: 4.2.2
HTC Sense Version: 5.0
Software number: 5.18.502.1
HTC SDK API level: 5.41
Android uses "SmileyParser" to watch for certain key combinations and replace them with preset images. The theory is that by changing the strings SmilelyParser checks, it won't ever find a match, and they won't be replaced.
I found the Message application under /system/app/Message+Nonprime.apk. HTC's Message application utilizes Android's android.com.mms but has custom functionality/themes (I'm assuming)
Using ADB (Android SDK tool to browse filestructure), I used "adb pull [source] [local]" to copy the .apk and .odex files
I used "smali-#-#-#.jar" and "baksmali-#-#-#.jar" to convert the .odex file
The output of the tool gives a file structure with editable files. I navigated to com/android/mms/util/
In this folder, there are two key files: SmileyParser.smali, and SmileyParserOne.smali. I believe the "One" version may be modified to work with HTC One phones, but I'm not 100% sure (content looks similar)
I opened each file with Notepad++ and found "const string" references with the text version of an emoticon. The code seems to match those with "aput objects" but I don't know 100%
I modified each string (within the quotes) by just adding an 'x' to hopefully thwart the string match. Basically, the phone should wait until x or x is fully matched before replacing the smiley
I'll note again, I did the EXACT same process in both .smali files I mentioned, and I touched ABSOLUTELY NOTHING ELSE. There's no telling what you'll break if those don't compile correctly (which is why I also avoided adding a longer string, in case memory allocation issues cropped up)
I then repackaged the entire output I created into a new .odex file
Now, here's where things get tricky. I don't have a rooted phone, so I can't actually replace the .odex inside of the /system/app folder. I may work on testing on my phone (but I don't get a lot of time and really would not like to brick it), but I'm worried since I'm running a very recently updated Sense version (and there may not be reliable root processes, I have no idea).
If anyone has a rooted HTC One X (check above for the exact software version I have) that would like to try out the modified .odex file (apk is mostly UI/theme, .odex contains the actual programming logic) I am providing the .zip containing the apk and odex files. I've also tried installing the apk+odex with "adb install X/X.apk" but the application has a name buried in the structure (probably everywhere) and I have no idea how to rename it everywhere that's required.
If someone knows how to take a package and re-compile it with a new name, I could potentially re-install "Message 2.0" as a user app without any root privileges required. That's another option I'm looking into (since I'd really rather not root and potentially lose my stored data).
The same problem is still occurring in 2018. I would try your solution, but it's outdated. I'll have to dive in and edit the files myself if a solution isn't found. Although, in that case, I would probably match something further from the x, preferably with 2 bytes because as you said, memory issues might pop up and I'm not sure just how far they went with this.

Subfolder notification using ActiveSync in 4.4 tested and working!

Ok everyone, I know there are a fair number of us out there that have rules setup in Exchange to redirect emails from certain people to folders. The problem with this is that will stop us from getting notifications on our phones (NOTE: I am not referring to syncing those folders. Obviously they need to be synced but the issue was that even with them synced you do not receive a notification when an email arrives in the folder even though it did sync properly). I was shocked when 4.4 came out and this issue hadnt been addressed. However as per the official issue on the android code site a user found out an incredibly easy way to make it work! It appears it is built-in by Google they just chose not to enable the feature.
See this post: https://code.google.com/p/android/issues/detail?id=50188#c59
I wasnt sure where to post this as it should work for any phone running the new email app in 4.4 but I didnt want to create a thread in each phone forum.
Here are some directions that may be a bit clearer than the original comment above.
NOTE: I used Root Explorer (paid version) for this
- Go to your email database folder. Located at: /data/data/com.android.email/databases
- Click on the "EmailProvider.db" file (open in Internal Viewer)
- Choose "Mailbox" from the list
- From this list write down the corresponding "serverId" of each folder that you want to have notifications on
- Convert those numbers to Base64 using the following tool: http://www.motobit.com/util/base64-decoder-encoder.asp (note that you will remove any "=" signs after your number)
- Now go back a folder to: /data/data/com.android.email/shared_prefs
- Now find a currently syncing folder from that same account (i.e. likely labelled: Folder-<ACCOUNT NAME>-<BASE64STRING).xml) So as an example lets say [email protected]. In that example the folder with serverId "5" is being synced. In this case its the "Inbox" folder of that account
- Long press on that file and choose "Copy" and then copy it back to the same directory
- Rename your newly copied file changing JUST the BASE64STRING part to the one that matches the folder you want to sync
- Reboot phone and enjoy!
I guess I should post them in some of the phone forums... there was a big thread somewhere I remember posting in at some point
Thanks for writing out these instructions! Glad to see there's a workaround -- this one little issue has driven me nuts for forever!
Just for reference, there is a thread I've followed for quite some time that's been focused on this issue, but it's buried in a Galaxy S II forum, so I think it could be easy to miss. They seem to be on to the same solution you posted here: http://forum.xda-developers.com/showthread.php?p=48140770#post48140770
EDIT: Actually, just noticed the XDA post I linked to is word-for-word the same as the Android Issue Tracker post you reference, so that's the same guy providing the solution. Small world.
Just an FYI that even in gmail 5.0 this issue still exists and is still easily fixed by adding the file as above (different folder now though). Apparently making this an option is beyond Google's ability
Have the same problem.
The real path to DB is:
/data/data/com.google.android.gm/databases/EmailProvider.db
Shared prefs:
/data/data/com.google.android.gm/shared_prefs
And the manual instructions at the first post of this topic didn't helped me.
I have OnePlus 3T A3003 with Oxygen OS 4.1.3 (beta7) (Android 7.1.1) and Gmail version 7.4.23.154506495.release.
Anyone have any ideas?

Website Maintenance on a Tablet PC

Hello Everyone,
I have a rooted Galaxy Tab A 10.1 SM-P580 with S Pen, with Marshmallow.
Right now I'm in the process of turning this tablet into my primary computer.
I have a website that I frequently update, that requires searching & replacing text in all .htm files.
Is anyone aware of an app (or other method) to search & replace a string of text in multiple .htm files on an android?
So far I haven't been able to find one. This is surprising because it seems lots of people would need this feature.
Here are a few apps that I've researched:
WebMaster's HTML. This does not have find & replace for multiple files.
QuickEdit Text Editor. This does not have find & replace for multiple files
DroidGrep. There is no option in this program to choose subdirectories.
Jota. All versions do not have this option.
Notepad ++. Some have said this program can search & replace text in multiple files in a directory. However, this may pertain to the desktop version.
For those of you who manage websites, how are you accomplishing this?
Any suggestions would be appreciated.
Thanks,
Mark

kindle RCE plugin, hidden files.

I saw this on my device, and only found little info/threads, with almost zero content/analysis. Aparently the kindle app leaves a bunch of random files around. And since the prefix is "RCE" i am a little paranoid, since that usually means "Remote code execution" and is usually associated with exploits
Files:
CS_JIT_Animation.mp4
jit_cs_positive_preview.png
rce_plugin_strings_resource_cs_CZ.json.min
rce_plugin_strings_resource_de_DE.json.min
rce_plugin_strings_resource_en_US.json.min
rce_plugin_strings_resource_es_ES.json.min
rce_plugin_strings_resource_fr_FR.json.min
rce_plugin_strings_resource_it_IT.json.min
rce_plugin_strings_resource_ja_JP.json.min
rce_plugin_strings_resource_nl_NL.json.min
rce_plugin_strings_resource_pt_BR.json.min
rce_plugin_strings_resource_v2_TYPO_TEST.json
rce_plugin_strings_resource_zh_CN.json.min
All Attached in a zip created by the android native file manager.
Current places mentioning this
https://forums.oneplus.com/threads/unkown-files-in-download.948860/
https://talk.sonymobile.com/t5/Xper...erious-Files-in-Downloads-Folder/td-p/1353185
https://forum.xda-developers.com/xperia-xz1/help/phone-mysterious-files-download-folder-t3871763
https://www.youtube.com/watch?v=eMmx5tRm0jM (one of the files is a video, someone uploaded to youtube ...and to https://gfycat.com/generouspinkcolt
How to make those files appear for you:
Install kindle from the google app store
if you already have it installed, or want to see the files again after you deleted, Stop the app and delete all storage. (nothing will be lost, this app syncs everything and some more to the amazon servers)
perform the first Sync on kindle app
Now, insert a pen drive and open the native android File Mananger and look at the local Download folder
Files are somewhat hidden:
If you look into the download folder with any other app (I tried, blackberry file manager, oi file manager, Ghost Commander, and Termux --after enabling the storage setup)
Files probably have a weird attribute or ownership... but the native android file manager does not show anything other than creation date! And every single file operation (copy, move, compress) reset the information to "regular user, creation time set to now". So either I see them on the Native File Manager, without any information available, or I do not see the files until I destroy the information.
Android version is not important (seems to happen on several versions) and has been happening for a while (First mention seems to be Nov2018)
Anyone have any idea what this is? I know I will probably reverse eng the kindle app at some point, wast a bunch of time, and realize it is just some dumb amateur library badly implemented by amazon... or maybe not. I think at this point I am most curious as to how the app "hides" the files from most everything.

Categories

Resources