Editing apk - Xperia Arc Q&A, Help & Troubleshooting

Last year I paid some guy to create me a simple app, he told me he used eclipse and android sdk. I have the apk and the source code for everything he has done. But I cant seem to open it as a project in eclipse. Why does it not let me? Its just greyed out when I click on project.

Did you install java sdk, eclipse and android sdk?
Then try to import project first. I consider eclipse the most unfriendly big dev env.
Sent from my LT18i using XDA App

i find that eclipse has a fit unless you
1 create new android project,
2 choose from existing sources
3 pick the folder with the sources in it
4 press next
eclipse has its quirks... and from what i've found seems to be different on every pc
Hope this helps
Pvy.

Related

Samsung Galaxy Tab Development Environment

Hello developers,
I'm starting this thread because I'm interested in designing a development environment for the Samsung Galaxy Tab so that developers, like myself, can have an easy environment for modifying the Android OS. I'll be aiming this environment at all Android Devices but I want to start with the Samsung Galaxy Tab.
At the moment I don't have much of a structure for this project, nor much direction, so if anyone has any ideas for what tools etc I should include in this please let me know. If anyone wants to get on board with the project it would also be appreciated. Send me an email.
tool ideas:
- integrating the GCC and Javac compilers into the environment.
- integrating a way to generate make files and to build from these files.
- GUI for editing files from the kernel and application framework.
- easy to use way of setting up branches for projects with the Repo and Git included in the Android Source Code.
Count me in. I am getting a Tab tonight and I plan to develop for it. Currently, I have got the froyo source on my machine and want to integrate the open source code that Samsung released for this device.
Has anyone successfully built a custom ROM using the Samsung source code? Any help on this will be appreciated.
Awesome!
I've got Froyo working on the Tab, which I built from the source code from the android open source project website but it's just a generic build from the straight source, nothing special. not with the samsung code though. do you have any links for it?
I've put a small amount of stuff into the Dev Environment, most just shell files etc to make installing everything easier. One click sort of thing.
My first task though is going to be to try and fix the failure that is the Samsung display driver. Most noticeable are the 4 by 1 widgets that don't stretch across the whole screen.
After that I'm going to start work on a GUI for the environment and the iOS Emulator.
thoughts?
Whats wrong with Android SDK and Eclipse?
It's not the most straight forward thing. I'm looking to make something that includes its own libraries too. It's aimed at beginning developers mostly, so you can literally download one file which includes everything you'll need then start editting and then one click to compile and have it all work. Simplicity
I'm also interested in this... The SGT is my first android device, and my company will want android apps for internal and external uses... and a one click dev environment would be a most welcome option!
DevShroom said:
I've got Froyo working on the Tab, which I built from the source code from the android open source project website but it's just a generic build from the straight source, nothing special. not with the samsung code though. do you have any links for it?
Click to expand...
Click to collapse
Straight up AOSP? Could you have a crack at CM?
Anything you need, including testers, I'm in.
I have programmed some programs in android. If you need my help, i will be glad to help,
Sent from my GT-P1000 using Tapatalk
i'm currently setting up a new galaxy Tab ubuntu 10.10 VM but I always fail at installing java5-jdk, but when im ready i'm going to have a look at the CM and AOSP source and i !try! to port CM to the tab!
I am working on a custom rom , if you need any help do not hesitate
yann06 said:
I am working on a custom rom , if you need any help do not hesitate
Click to expand...
Click to collapse
are u building from source or are you modifing a stock rom?
DevShroom said:
Hello developers,
I'm starting this thread because I'm interested in designing a development environment for the Samsung Galaxy Tab so that developers, like myself, can have an easy environment for modifying the Android OS. I'll be aiming this environment at all Android Devices but I want to start with the Samsung Galaxy Tab.
At the moment I don't have much of a structure for this project, nor much direction, so if anyone has any ideas for what tools etc I should include in this please let me know. If anyone wants to get on board with the project it would also be appreciated. Send me an email.
tool ideas:
- integrating the GCC and Javac compilers into the environment.
- integrating a way to generate make files and to build from these files.
- GUI for editing files from the kernel and application framework.
- easy to use way of setting up branches for projects with the Repo and Git included in the Android Source Code.
Click to expand...
Click to collapse
I'll be interested in getting involved in a community driven project for the SGT. I'm a unix admin with lots of experience in the OS and system development field. Interested in what ideas you have on this.
Try using openjdk. It works for me.
Sent from my GT-P1000 using Tapatalk
Thanks everyone for the positive feedback on all this! it'll be good to have as many people on board as possible.
if you have troubles downloading the sun-java5-jdk there is a good tutorial on it on this site, it doesnt come as part of the repository by default so until you add it in sudo apt-get install sun-java5-jdk will not work.
atm i am only working with AOSP not CM, i am trying to set this dev environment up for a nice simple build and then i'll start working on more complex builds so we can start developing custom roms.
@paulshields - do you know much about linux/android drivers? i wanna fix the widget sizing problem on SGT but my driver knowledge is limited

Porting C/C++ Linux apps via python binding?

First of all let me start off by admitting that I am crazy and a noob programmer so maybe I don't understand the problem and am asking a rediculus question.
I was wondering if there was any way of converting C/C++ source into python that could be run on Android. Mostly command line stuff that would be done over adb or maybe even the terminal. I have got the python interpreter google provides running on the command line, I can access it from adb, terminal IDE, Terminal emulator, it seems everywhere, I moved the files into my /system directorys and add PYTHONHOME and ""PATH to my bashrc and mkshrc files located in the "/system/etc" section and now I can call them from those shells. For instance I can call "bash" and get bash, or/and I can call "python" to get python2.6 ( I have no idea how to implement the "Alternative" method of linking executables like in debian on android so it just has to be thought out, i tested with 2.6)
So with that all being said, if the C/C++ bindins for python ( I don't really even know how those work) were ported to android would we be able to use that to port C source?
And a second question. Does the python interpreter googlecode offers run on top of the Delvik VM?
Sounds pretty complicated and interesting, seen a lot of crazy things happen here over the years so I wouldn't say anything is impossible lol I recommend you ask this in the Q&A section though. Or maybe the Android Development and Hacking section, there's a lot of talented programmers over there as well.
Sent from my SPH-L710 using Tapatalk 4 Beta
To answer the question you asked: no, that's not a reasonable endeavor.
To answer the one you didn't: it's actually not hard to build most console programs from source to run on Android. You should be able to grab yourself a cross-compiler toolchain, and build the programs yourself. If you're running Linux on your computer, most distros have a tool to build such toolchains, or you can use e.g. MinGW and a Windows toolchain (Linaro might have one) to compile. In general './configure --host arm-linux-androideabi' should set everything up for you.
Obviously, there is a learning curve to building like this, but it's certainly not impossible to do.
Sent from my SPH-L710 using xda app-developers app
decimalman said:
To answer the question you asked: no, that's not a reasonable endeavor.
To answer the one you didn't: it's actually not hard to build most console programs from source to run on Android. You should be able to grab yourself a cross-compiler toolchain, and build the programs yourself. If you're running Linux on your computer, most distros have a tool to build such toolchains, or you can use e.g. MinGW and a Windows toolchain (Linaro might have one) to compile. In general './configure --host arm-linux-androideabi' should set everything up for you.
Obviously, there is a learning curve to building like this, but it's certainly not impossible to do.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Right on, I just started reading the Linux From Scratch book and it has helped me understand the process behind it all a bit, I still need to finish reading the book and build my own Linux system for the my laptop first as that is what they are talking about.
I actually just got msfconsole or Metasploit running on Android, I ran started it up from ADB. I posted another thread about it with more detail.
I am just mounting the filesystems from the kali.img file that I made a few days ago, I basically just did a reverse chroot and brought those directories into Android's "/" directory and then exported the path variables that you normaly would but since I didn't change root and all the apropriate directories where in their proper place it ran.
My next step is to obtain a method for building the Kali Linux for arm system on a ROM, probably a blend of Cyanogenmod and Kali Linux core or rather just the command line programs. I am assuming that once the tools are available to the Android system folks could build gui's that call those programs and return their values and then bundle it in an apk for installation across devices running the modified ROM.
My end goal is basically a version of the Kali Linux distro that runs Android as its "desktop" instead of kde gnome pxe or some of the others. Then hopefully, maybe, if its deemed worthy, a specialized repository can be maintained for this version of the distro that wouldn't include any of the original gui programs for normal Linux Desktops, but only specialized apk's (instead of .deb or .rpm) that install gui's for android.
Thats what I would like to see, a Super Droid.
Please read forum rules before posting
Questions and Help issues go in Q&A and Help section
Thread moved'
Thanks
FNM

[Q] Android 4.4.2 Clock app source code to modify in Android Studio?

I'm looking for the Android 4.4.2 Clock app source code to modify in Android Studio.
Is that possible to find?
I don't need to replace the clock app or to change the whole Android 4.4.2 OS. But I would like to use the built in Clock application (source code) to make another application with just a few modifications.
I saw a clock application on the Google Play store that said it was the stock clock with modifications. That's where I got the idea that finding the Google source code for its Clock application might be possible. Ideally it would be a project file ready to use in Android Studio.
Thanks.
Is this it?
https://android.googlesource.com/platform/packages/apps/DeskClock/+/eclair-passion-release
You can download whole android source tree including alarm app from here: http://source.android.com/source/downloading.html
VoiceScripter said:
I'm looking for the Android 4.4.2 Clock app source code to modify in Android Studio.
Is that possible to find?
I don't need to replace the clock app or to change the whole Android 4.4.2 OS. But I would like to use the built in Clock application (source code) to make another application with just a few modifications.
I saw a clock application on the Google Play store that said it was the stock clock with modifications. That's where I got the idea that finding the Google source code for its Clock application might be possible. Ideally it would be a project file ready to use in Android Studio.
Thanks.
Is this it?
https://android.googlesource.com/platform/packages/apps/DeskClock/+/eclair-passion-release
Click to expand...
Click to collapse
Thank you. Will I be able to run any of that in Android Studio (0.8.9)?
I am able to run the Android Studio included samples, but no luck running samples that were not included with Android Studio. Like the samples on this page...
https://developer.android.com/samples/index.html
Currently, I'm going to try the method on this page...
https://github.com/gdg-hudson-valley/android-samples
Thanks.
Run? you can compile any source code in Android Studio, whether it will run or not depends on which SDK you select and what target platform you use assuming you don't induce errors with mods.
VoiceScripter said:
Thank you. Will I be able to run any of that in Android Studio (0.8.9)?
I am able to run the Android Studio included samples, but no luck running samples that were not included with Android Studio. Like the samples on this page...
https://developer.android.com/samples/index.html
Currently, I'm going to try the method on this page...
https://github.com/gdg-hudson-valley/android-samples
Thanks.
Click to expand...
Click to collapse
When I say "Run", I'm talking about the little arrow in the Android Studio toolbar that says "Run".
I am able to run samples in Android Studio. The built-in applications were easy. The Android samples from this page were problematic.
http://developer.android.com/samples/index.html
Now I can run those Android samples too, thanks to this useful page.
https://github.com/gdg-hudson-valley/android-samples
Everything functions properly with the samples in Windows, the applications run on my USB-connected Android tablet.
So I looked at the webpage you provided.
http://source.android.com/source/downloading.html
There, it says that Linux (or a virtual machine in Windows) is necessary. So I installed Linux and then Java and then Android Studio. I didn't download the whole source code like on that page, but I imported (previously downloaded through Git in Windows) the Deskclock source code and ran it. Instead of 63 errors, it produced 67 errors.
I have installed every single SDK, in fact every single checkbox in the SDK Manager. Everything was there. Seems to me like its a problem with IDE configuration files. But I know it can be done. That's how ROM makers produce their ROMs.
I got the Deskclock application from this Android source repository page.
https://android.googlesource.com/?format=HTML
Must I use Linux as described on that page you provided to download the source described there in order to make any of the stock applications run in Android Studio? If so, I will get back into Linux and try that way.
Thanks.
No you don;t need Linux, you can download the source code in pieces rather than use GTHUB.
JUst Google "android clock example" you will find dozens of example apps and source code
VoiceScripter said:
When I say "Run", I'm talking about the little arrow in the Android Studio toolbar that says "Run".
I am able to run samples in Android Studio. The built-in applications were easy. The Android samples from this page were problematic.
http://developer.android.com/samples/index.html
Now I can run those Android samples too, thanks to this useful page.
https://github.com/gdg-hudson-valley/android-samples
Everything functions properly with the samples in Windows, the applications run on my USB-connected Android tablet.
So I looked at the webpage you provided.
http://source.android.com/source/downloading.html
There, it says that Linux (or a virtual machine in Windows) is necessary. So I installed Linux and then Java and then Android Studio. I didn't download the whole source code like on that page, but I imported (previously downloaded through Git in Windows) the Deskclock source code and ran it. Instead of 63 errors, it produced 67 errors.
I have installed every single SDK, in fact every single checkbox in the SDK Manager. Everything was there. Seems to me like its a problem with IDE configuration files. But I know it can be done. That's how ROM makers produce their ROMs.
I got the Deskclock application from this Android source repository page.
https://android.googlesource.com/?format=HTML
Must I use Linux as described on that page you provided to download the source described there in order to make any of the stock applications run in Android Studio? If so, I will get back into Linux and try that way.
Thanks.
Click to expand...
Click to collapse
I appreciate your attempts to help, but you should know by now that I'm putting much effort into doing this. It is apparently not a trivial thing.
When one "Googles" the term "android clock example" it produces a grand total of five results that are mostly off-topic.

Cross compilation for armv7

Hello everyone,
I'm searching how to cross compile for armv7 processor such as the one in surface RT or surface 2.
How did the recompiled app found in this section were recompiled ?
I found this github which sounds very promising.
Did anyone used this project ?
maximushugus said:
Hello everyone,
I'm searching how to cross compile for armv7 processor such as the one in surface RT or surface 2.
How did the recompiled app found in this section were recompiled ?
I found this github which sounds very promising.
Did anyone used this project ?
Click to expand...
Click to collapse
To actually compile a desktop program, you need the source code of the program. This means that the program has to be open source (ex: Firefox, OBS, Notepad++, Dosbox etc...). Then, you compile it to the desired platform. You cannot really decompile closed source programs (Photoshop, Chrome...) and recompile it to your desired platform because it's really complicated and you might run into legal issues.
So your best bet would be to compile open source programs.
alexenferman said:
To actually compile a desktop program, you need the source code of the program. This means that the program has to be open source (ex: Firefox, OBS, Notepad++, Dosbox etc...). Then, you compile it to the desired platform. You cannot really decompile closed source programs (Photoshop, Chrome...) and recompile it to your desired platform because it's really complicated and you might run into legal issues.
So your best bet would be to compile open source programs.
Click to expand...
Click to collapse
Yes I know, I'm playing with vlc sources for the moment
When I said recompile I wanted to say compile for armv7.
I just wanted to know what toolchain peopole used until now for the program we can find in this forum
maximushugus said:
Yes I know, I'm playing with vlc sources for the moment
When I said recompile I wanted to say compile for armv7.
I just wanted to know what toolchain peopole used until now for the program we can find in this forum
Click to expand...
Click to collapse
Actually, VLC provides a tutorial on how to compile a build for any platform. They actually use the mingw-w64 toolchain (The same you mentioned on the OP): https://wiki.videolan.org/Category:Building/
They also have a section for Windows 8.1 RT Windows app (It's not the desktop Program) which you can compile with Visual Studio: https://wiki.videolan.org/WinRTCompile/
alexenferman said:
Actually, VLC provides a tutorial on how to compile a build for any platform. They actually use the mingw-w64 toolchain (The same you mentioned on the OP): https://wiki.videolan.org/Category:Building/
They also have a section for Windows 8.1 RT Windows app (It's not the desktop Program) which you can compile with Visual Studio: https://wiki.videolan.org/WinRTCompile/
Click to expand...
Click to collapse
Yes that's what I'm playing with (cross compile with mingw), but I don't have a lot if time in this epidemic periode...
If you want VLC, don't bother yourself with compiling it, there's a very decent UWP app available on the Microsoft Store and it works for arm 32bits, tho it's a good initiative to start compiling new stuff, I can only encourage you guys to do more, I'm currently trying to see how to compile more cores for RetroArch but it's a hassle, hopefully, pcsx-rearmed can at least be compiled...

General Manifest FIle

Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
LMGTFY - Let Me Google That For You
For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.
bfy.tw
Deadshot0x7 said:
Hello Fellow developer and programmer, I'm building a custom by using Ressurection Remix as a base, While I'm initializing the repo an error occurred, How to solve that. The Error is repo is not reccoginzsed as an internal or external command, I have installed the repo, thanks for the reading the post
Click to expand...
Click to collapse
Download repo and make executable. Basic stuff man. Google as suggested above.
William.trem said:
Download repo and make executable. Basic stuff man. Google as suggested above.
Click to expand...
Click to collapse
thanks btw I'm new to custom rom
Deadshot0x7 said:
thanks btw I'm new to custom rom
Click to expand...
Click to collapse
I'm working on porting one myself. Repo is available within the Ubuntu apt-get repository. That can be a simpler way to install. However I'd suggest the curl & chmod method method for the latest binary as well as getting good experience.
Source control tools | Android Open Source Project
source.android.com
Downloading the Source | Android Open Source Project
source.android.com
2 sec to google
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
djsubterrain said:
Follow the instructions to add the repository, then do an initial repo sync, I hope you have plenty of drive space cos some roms can take up many GB
The manifest instructions even link you to the guide for setting up git and repo
Ubuntu is usually the best platform for this, it might work in Windows subsystem for Linux but I've never tried so couldn't tell you.
Haven't built a rom for a while but you used to add device tree urls in .repo/local_manifests/roomservice.xml, it's probably still done the same way. (.repo is a hidden folder by default so, in Ubuntu, you would press CTRL+H to get it to show up)
If you don't know how to install repo then you will likely need to do a LOT of reading before you can even think of firing off a build.
Click to expand...
Click to collapse
Currently having success within WSL v1 Ubuntu.

Categories

Resources