[Q] Android Studio folder issues. - Android Q&A, Help & Troubleshooting

Hello!
When I downloaded Android Studio 1.1.0, everything worked fine. However now I'm worried that it might be broken even though I uninstalled it then reinstalled it.
First of all there is an odd 'New Project' tab asking me for gradle or java or griffin etc then asking me to enable a script template (A script opene with the main class).
But that isn't the real problem.
The real problen is in the file directory. As you know I should really have an App folder and the .ideas folder, but I only have the .ideas folder. I can't edit my project without my App folder! Please help!
Thanks in advance!

Related

[Q/Help] How do I mod sms handling?

I got a problem with the way sms's are handled by HTC Sense(Its the HTC Desire).
I receive a sms from work on a daily basis, and thy contain a "/" (Slash as in "WorkPlaceName A/S") in the "from/sender" field instead of a phone number.
The problem is that the phone receives it, but discards it again because of the slash.
All sense based ROM's I've tried have all had this problem, but the non-sense froyo(2.2) ROM's are fine.
Now I want to change the behavior my self, but I don't know where to look.
I was thinking the kernel or somewhere in the ROM?
But I'm not sure.
I'll appreciate any help.
Anyone can help on this?
Does anyone know how would know?
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
gnarlyc said:
Have you tried using Handcent instead of the HTC app? Since HTC's apps are not open source, it might not be easy to modify them although you could try 'APK Manager'.
Also, I recommend reading this if you want to understand how apps interact with the OS in Android - http://developer.android.com/guide/topics/fundamentals.html
Click to expand...
Click to collapse
Yes i did try Handcent, but as far as I can see the problem runs deeper then that.
I tried almost all sms apps on the marked, and the sms's keeps getting deleted.
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
APK Manager?
hexskrew said:
if there is any way to change it, you could most probably find it by decompiling the apks associated with the sms system.. Unfortunately I have no idea what file it would be, however you can convert the Android compiled XMLs with AXMLPrinter2.jar file, and edit the settings to get it to do what you want (though there is a better and more efficient way to do this.. I cant remember what the program is called to do it..)
You can get AXMLPrinter2.jar from here: Download
You have to have the java jre (java runtime environment), and here is the syntax:
1. rename the apk to a .zip file
2. extract the files to a folder
3. 1 by 1 go to the files you want and type (for example)
java -jar AXMLPrinter2.jar Rosie.xml > Rosie.txt
Like I said there is a better way. There is a program out there that will do the hard work on multiple files for you, however I can't remember the program name.
Click to expand...
Click to collapse
Thanks I'll try that.
But do you know the name of the HTC SMS apk?
I can only find MMS and mail.
Anyway I'll have a look at the MMS apk.

[Q] Problems installing HTC OpenSense SDK

I'm trying to get setup to make my first app, and I'd like to get the HTC OpenSense SDK installed.
I downloaded the zip file, extracted it, figured out how to access it through the Android SDK Manager, but I get the following error:
"Downloading HTC SDK for Phones by HTC, Android API 10, revision 1
File not found: \addon_htc_phone_ext_1.0.zip (The system cannot find the file specified)"
I'm pointing the manager to the .xml file, and within that file is just the text 'addon_htc_phone_ext_1.0.zip' (no \ in front of it) so that tells me that the SDK manager itself is probably doing that.
Any ideas what I'm doing wrong here? It's definitely accessing the .xml files it should be, so I'm not sure what else to do.
Is there a known online repository I can point it to for this install?
Thanks.
The sdk manager searches this file under "Android\android-sdk\temp" folder.
Just drop down your "addon_htc_phone_ext_1.0.zip" file under this folder and Enjoy!
If works, just don't forget the meter in the left corner!!!
bye
Ketan

HELP!!! I think i just lost my app while generating a signed apk

So i am new to actually exporting apps and this is the first one i have developed even worth exporting.
I exported it and then opened in file explorer. It was in the 'app' folder i think. I thought that this is just what i had generated and nothing more. So i highlighted it all and clicked 'cut' i put it into a folder on my desktop. The transfer was taking ages and there was some other crap (conflicting file names) so i decided to cancel the transfer and empty the folder and start again. After hitting cancel my computer froze up. Now android studio won't open my app. I am shattered and would appreciate any help just recovering my source code.
Thanks in advance guys!!!
p.s. if it helps, i was debugging on my phone so have the latest copy there, also an apk that i exported earlier today, and my project folder which has stuff in it but clearly missing something crucial as it will not load. The first error said something about an app file

How to convert/extract RC2 files? And any other option besides UABE for assetbundles?

Hello all!
I've a few questions and maybe you guys can help me: I want to translate an Android Chinese Game and right now I can only open a *.rc2 file (with notepad++) that I found with a group of players of that game. The problem is that the game still has some other rc2 files, assetbundles and xml files that I can't open. So my questions are:
- How can I extract the assetbundles? I found the Assets Bundle Extractor (UABE) application but every time I try to extract a file, my PC restarts (my rig: i5 haswell, 8gb ram, GPU R9 200x series). Is there any other option to extract those files?
- Is there something that I can do to convert or decompile rc2 files so I can open and edit it?
- I can't open some of the XML files with Notepad++, do I need to convert it to text first? If yes, is there any app that I can use to do that?
(I get the .apk and followed one Youtube tutorial called "Get source Code(Java and XML) from android APK"but all I got were *.smali files).
I know that those questions are very newbie, but I'll appreciate any help.
Thank you.

Help Decompiling/Recompiling Stock/System App with APK+ODEX

I've got a specialized Android box running 8.1. I also have a full system image for the machine.
Within the image is a custom app that I'd like to modify. I'm able to pull the APK and ODEX/VDEX files from the priv-app folder. I'm also able to deodex to get all of the smali files, and recreate the classes.dex.
This is about as far as I've gotten. I should also say I've never done this, so may not have all the necessary tools. At this point, I'm simply trying to create a new and functional full APK that can be installed on another machine.
For anyone following....
Once you've got your dex files, add it/them to the apk package. Install Visual Studio Code (the free general use version of Visual Studio). Then install the APKLab extension. With VS open, CTRL-Shift-P to bring up the command menu, where APKLab: Open an APK should be at the top. Select it, then choose the APK to open, along with the desired options. These are what I generally choose:
-decompile_java (much easier to read the java than smali code, although it cannot be edited)
-force-manifest
-no-debug-info
-deobf
-show-bad-code
*unselect only-main-classes
Make any edits within the smali. In the left side Explorer menu, right click apktool.yml and select APKLab: Prepare for HTTPS Inspection. When complete, right click apktool.yml and select APKLab: Rebuild the APK. Your newly compiled APK will be placed in the "dist" folder.

Categories

Resources