Password protect Android Studio project - android

I am a full time Android Developer and in the current firm I am working at, I have found my system to have modifications that I didn't perform(when I turned it on the next morning) . I am okay with casual modifications(if at all) but am afraid that if my Android projects may get "stolen", it may get out of hand.
So, without making this a workplace issue, I would simply like to password protect my source.
How can I achieve the same?

I don't think there is such option in android studio but you can do it so easy. After writing your project you can save it as password protected Archive file using 7zip
Go to your project, right click your project folder>>7-Zip>>Add to archive>>Encription>>Add your password>>save. Then delete your project folder after saving and closing android studio.
[Do not use export option in android studio because you will need do download all external libraries next time you open it and there is no password protection]

Related

Android Studio - Modding Firefox search suggestions error - "Files under the "build" folder are generated and should not be edited"

I'm modifying the Firefox Android App. I'm trying to change the search suggestions feature from Google to another search engine. To do this I have to change 2 files
The first file I change is:
fenix/app/build/intermediates/merged_assets/debug/out/search/list.json
The second file that I add is:
app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml
After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited".
What should I do to make my changes save here? Why are the files being reverted back to before I changed them?
Thanks for your help

Unlock APK files in Android Studio for editing

Newbie here!
I have downloaded the .apk to Android Studio to make some changes to the code. I want to add a requirement for a user to insert 'a memorable word' when they register. But when I try and edit the required file, I just get an alert box telling the file is read only. I have tried to alter this in the panel but to no effect. It is possible the previous developer locked the files. How do I go about editing from this point forward, if the developer has locked the files, on which file/folder do I alter to make the files editable.
The .apk file you have is a compiled version of the code. Android studio can decompile this for you when you import it to view the content, but you cannot edit the decompiled code directly.
Your best bet is to acquire the original source code. Other option is to try decompiling and recompiling the .apk like explained in this post.

Android Studio ---- The path is not writable. Please choose a new location

I just installed Android Studio and want to start a new project. But it showed the following error message:
The path XYZ is not writable. Please choose a new location
How should I fix this problem?
The most likely explanation is that the directory and all its files are owned by a different user account on the system. Normally the "Clear Read-Only Access" dialog will fix up read permission problems if it's possible to do so; if it's not (because the files are owned by another user), the dialog will refuse to let you click the OK button.
You can confirm this by using the ls command from the MacOS terminal. Here's an example from a random project of mine.
I had the same issue. Running Android Studio as an administrator worked for me. If this is a possibility for you and you did not do it before, give it a whirl.
I got that error on windows because the initial project location was C:\. But the problem was solved when I made a folder and gave that path:
C:\repo\myApplication
Myself also faced the same problem because , I have changed the permission of that drive from x:\ -> properties -> security . Once I have given full control for my user option(one among 4 options in security) and reopening the Android studio , it didn't post that warning again. So, before you try this option , please verify the security details of drive and make sure that it doesn't affect your further operations regarding security.
I was having this same problem, then I plugged in a flash-drive. It allowed for a place to store the files with a location that did not have white space, was empty, and had enough room to store everything I needed. The flash was the only way I found on my computer to store the files where the path was writable. Hope this helps someone.
You can create that folder (or those folders) yourself, then run the installer again.

Is there a way to add such folder in Android project that do no get compiled up to **apk**

I was looking for a way to add some such folder in my Android Project that do no get compiled up to my apk file.
Why I need it :-
We need to maintain proper documentation for project (that actually
everybody needs to ;) nothing new),
but I find it very irritating to look out for that documentation
folder again and again.
.
I am open for any way i can make dcocumentain folder easily one
click accessible (I am already doing it thru taskbar sortcut. ) But
I want it to get the ease of version control thru Eclipse likewise we
do it for our project
IDE :- Eclipse
I got a way myself :-
I had an idea that if I create a folder in my application project with
some anonymous name that actually android has not listed in its
directories ("I am talking about the default one like "res", "src",
"anim"......)
Then either it should "raise an error" or should "ignore" it while compiling to form apk file
luckily it ignores any such folder. now i can put all the documentation in my project.
NOTE:-
My answer empirically driven
I had tested it by creating a "Docs" folder and then copied 1 GB of
random data (includes almost all type of files we came across from
multimedia to zipped ones).
Then I build the apk and the size of the apk was in-effective of all
this..
but when i copied the same data to assets it was showing a huge change
in size of my apk file..
Consider using Javadoc in addition or, if possible, instead of any other documentation.

How do I open a .apk google example?

Ok so I want to learn android push notifications. I found at android to use the C2DM service.
http://code.google.com/android/c2dm/
Great they even give me an example. http://code.google.com/p/jumpnote/downloads/list
My problem is I don't know what to do with the file after I download it. :P
It is an .apk file. So how do I open it in eclipse to learn from it?
An apk is an android install app thingy you run it on your phone. To edit search android code examples and select the first one select what you want to edit dowbload the manifest and the other files and edit them in eclipse. Have you ever tried opening a .exe in notepad it does not work so well because it is already compiled same (i think) with the. Apk also make sure you have the android plugib for exlipse. Sorry for the strange language I am a delvoper who forgets the name of everything. And the grammer i am only 13.
Rename it to .zip and you can open it with your favorite zip unarchiving program.

Categories

Resources