Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Rakoen said:
Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Click to expand...
Click to collapse
I guess you can download that TextSecure source code and import as a Project in Eclipse and simply run (If no errors are detected), and I think it will build the apk and execute in the emulator (If you have already created one)
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Rakoen said:
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Click to expand...
Click to collapse
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
coolsandie said:
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
Click to expand...
Click to collapse
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Rakoen said:
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Click to expand...
Click to collapse
Hmm, errors must be eliminated before executing. Try a Project Clean.
It's not mentioned on the repo , which is sneaky , but the app uses ActionBarSherlock library: or it was when I last checked. You clone that and bring it into Eclipse or whatever. On ant anyway you must have a file called project.properties with the following lines: android.library.reference.1=path/to/ActionBarSherlock/library and target=android-17. If you have problems you should always write the error, otherwise we can't help you.
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
@dabl8
Thanks for the advice. I'm not sure however if I imported it well, as it always seem to get imported as a different projecten, not quite integrated in my TextSecure building tryout.
This is my current situation:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
These are the errors:
http://dl.dropbox.com/u/3062101/errors.txt
Rakoen said:
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
Click to expand...
Click to collapse
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
coolsandie said:
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
Click to expand...
Click to collapse
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Rakoen said:
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Click to expand...
Click to collapse
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
coolsandie said:
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Click to expand...
Click to collapse
dabl8 said:
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
Click to expand...
Click to collapse
Okay, I've spent some hours on it and got very far, but am stuck now. First of all I've uninstalled all Java versions I had, then installed JDK6 (update 37 final). I rechecked it.
Then I did lots and lots of things that I can't remember all. Things with Eclipse properties, project.property editing, experimenting with environment variables, experimenting with Android SDK and a lot more (like symbolic links in my JDK folder). However, this ended in some very interesting results. I also found that the android-support-v4.jar in the ActionBarSherlock extension was different than the one of TextSecure, so I replaced both files with the TextSecure version (not sure what I did, but it made some progress).
First of all, I am going to show the progress I made with Eclipe (not so interesting that one). Now I only get 688 errors and 157 warnings, which means 236 problems less than yesterdag, awesome!
Log file: http://dl.dropbox.com/u/3062101/upgradedlog.txt
Then I thought, this doesn't work, lets try ANT. After fixing lots of issues and errors, I was finally able to build an APK! It didn't install at first, because it was unsigned, so I used the autosign.bat tool to fix that issue. I finally managed to install the application, but now there is one problem left: it fails to launch.
"Unfortunately, TextSecure has stopped."
Any ideas?
Thanks!
EDIT: Just tried it with the latest android-support-v4.jar from Android SDK and it still doesn't start. So I don't think that's the problem.
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
dabl8 said:
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
Click to expand...
Click to collapse
Tried these steps on Windows. The 'android update project -p abs/library' command fails.
Code:
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
Also the 'ant debug install' command failed.
Code:
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:688: null returned: 1
EDIT: Also, when adding android.library.reference.1="../ActionBarSherlock-master/library" to project.properties myself, I get this error with 'ant debug install':
Code:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:595: Invalid file: C:\Users\PC\Desktop\ActionBarSherlock-master\library\build.xml
EDIT2: Maybe an interesting detail is that it fails here:
Code:
Building Libraries with 'debug'...
It's what it says : you don't have the SDK platform (target) that ActionBarSherlock is looking for. Either download it or change the project.properties to use one that you have.
Link to steps
I'm not sure if you are still looking to build it from source.
This one worked for me: https://github.com/WhisperSystems/TextSecure/wiki/How-to-build-TextSecure-from-the-sources (detailed for newbies)
https://play.google.com/store/apps/details?id=jp.forkhub
Don't forget... getting in the fray of development is the best way to be included!
So,
the G Pad (v500) comes with in two versions.
One version has the S5K4E5YA as back camera.
Other version hast the OV5693 as back camera.
As we know the S5K4E5YA already has support in AOSP and CM ROMs and kernels.
So I tried to add the missing files and references to the CM kernel.
https://github.com/drbeat/kernel_lge_v500/commit/7c9beb4a27fc65b60786616c5c966e53632dfc5d
These are changes I picked out from the "V50020D" kernel sources.
In compiling I get this error
Code:
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: error: extra brace group at end of initializer
{FALSE, 0, 0, 1},
^
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: error: (near initialization for ‘ov5693_calib_supp_info’)
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: warning: excess elements in struct initializer
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: warning: (near initialization for ‘ov5693_calib_supp_info’)
drivers/media/video/msm/eeprom/ov5693_eeprom.c:82:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct msm_calib_id’
{&ov5693_id_data, sizeof(struct msm_calib_id)}, /* */
^
drivers/media/video/msm/eeprom/ov5693_eeprom.c: In function ‘ov5693_format_iddata’:
drivers/media/video/msm/eeprom/ov5693_eeprom.c:88:2: error: invalid use of undefined type ‘struct msm_calib_id’
ov5693_id_data.sensor_id= (uint16_t)ov5693_idcalib_data;
^
drivers/media/video/msm/eeprom/ov5693_eeprom.c:88:2: warning: statement with no effect [-Wunused-value]
make[5]: *** [drivers/media/video/msm/eeprom/ov5693_eeprom.o] Error 1
make[4]: *** [drivers/media/video/msm/eeprom] Error 2
make[4]: *** Waiting for unfinished jobs....
LD drivers/media/video/msm/gemini/built-in.o
make[3]: *** [drivers/media/video/msm] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
Am I missing some changes?
Maybe someone know how this can be fixed so everyone gets the same experience.
EDIT:
OK I got it compiling.
https://github.com/drbeat/kernel_lge_v500/commit/7fce6ccd0c82fcdb17c22f4053db4d6703f1c436
Now I need someone with OV5693 to test it out
EDIT 2:
The binaries may be lacking.
I will look into that
EDIT 3:
So I have made a ZIP containing binaries and a kernel with ov5693 drivers
I need someone to test it out
DOWNLOAD: removed!
will upload a new version soon
EDIT 4:
DOWNLOAD: https://www.androidfilehost.com/?fid=95897840722648539
I thought ov5663 was the one that does not work. Here is a log for a ov5693 working with stock AOSP.
http://forum.xda-developers.com/showpost.php?p=57338503&postcount=5
Deltadroid said:
I thought ov5663 was the one that does not work. Here is a log for a ov5693 working with stock AOSP.
http://forum.xda-developers.com/showpost.php?p=57338503&postcount=5
Click to expand...
Click to collapse
there is no "ov5663"
the back camera which is not working is "ov5693"
Then I'm curious why the person who posted that log says his cameras are working.
Deltadroid said:
Then I'm curious why the person who posted that log says his cameras are working.
Click to expand...
Click to collapse
so to clear it up for you
front cam is always "IMX119"
back camera is either "S5K4E5YA" or "OV5693"
there is no "OV5663"
that guy posted dmesg before he flashed AOSP
since his back camera is working he has a "S5K4E5YA" module
just ask him to do another dmesg now. you will see that his results will be IMX119 and S5K4E5YA since AOSP and CM dont support OV5693
Thanks for clearing that up. I'm sure lots of others were/are confused too.
I bet of you changed the title of this thread to something like "fix for back camera" then people would understand the purpose of this thread better and offer to test.
Deltadroid said:
I bet of you changed the title of this thread to something like "fix for back camera" then people would understand the purpose of this thread better and offer to test.
Click to expand...
Click to collapse
i still have to find the right binaries to make a working zip
I have a 50020D, I'll take it for a spin and report back later.
UPDATE: I got stuck at boot logo after flashing, but I managed to restore from my backup.
To tell the truth I'm not using stock CM, but a Team Vanir/Commotio ROM. Although they supposed to be using the same kernel and device tree as CM.
Munszu said:
I have a 50020D, I'll take it for a spin and report back later.
UPDATE: I got stuck at boot logo after flashing, but I managed to restore from my backup.
To tell the truth I'm not using stock CM, but a Team Vanir/Commotio ROM. Although they supposed to be using the same kernel and device tree as CM.
Click to expand...
Click to collapse
thx for reporting
do you have a backcam which is not working?
ckret said:
thx for reporting
do you have a backcam which is not working?
Click to expand...
Click to collapse
Yeah, I do.
It's only working on stock ROMs, so I guess its the same.
If you can tell me how, I can send you a log or something to help you.
uploaded a new zip
this one doesnt give bootloop.
still do a backup and report back please
ckret said:
uploaded a new zip
this one doesnt give bootloop.
still do a backup and report back please
Click to expand...
Click to collapse
I've tried and the tablet booted up well this time, but the fix didn't work unfortunately.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
can some one that has ov5693 please test this zip and see if the cam works
it uses the same kernel that ckret has in his zip file
the only thing I added was more of the camera binaries from 20d
make sure you back up first
https://www.mediafire.com/?gx83ty2ytxdc2wt
I tried it but it got me into a boot loop.
I hope you figure it out \o
PS: Using Mahdi's Kit Kat Rom.
thanks for testing, sorry about the loop
since I dont have this phone, I dont think I will be able to help much more, sorry
hroark13 said:
can some one that has ov5693 please test this zip and see if the cam works
it uses the same kernel that ckret has in his zip file
the only thing I added was more of the camera binaries from 20d
make sure you back up first
https://www.mediafire.com/?gx83ty2ytxdc2wt
Click to expand...
Click to collapse
its not that simple.
i am writing exams right now so i dont have time look into the problem
ckret said:
its not that simple.
i am writing exams right now so i dont have time look into the problem
Click to expand...
Click to collapse
I looked at your kernel commit and that looked to be right
those files I have in that zip are the correct libraries
what it is probably missing is a key in the lib camera client
there is most likely a message in the logcat that says it could not load camera.msm8960.so because it could not find a key
usually these keys could be added to
frameworks/av/camera/CameraParameters.cpp
and
frameworks/av/include/camera/CameraParameters.h
but then you would have to build cm11 again
I am pretty sure the only way you are going to get the back cam to work is with those libraries
if you grep for ov5693 in the original files / libraries it probably will not be found, if you grep the 20d files, you should find it listed in the mm-qcamera-daemon, liboemcamera.so and the 3 chromatix files
hroark13 said:
I looked at your kernel commit and that looked to be right
those files I have in that zip are the correct libraries
what it is probably missing is a key in the lib camera client
there is most likely a message in the logcat that says it could not load camera.msm8960.so because it could not find a key
usually these keys could be added to
frameworks/av/camera/CameraParameters.cpp
and
frameworks/av/include/camera/CameraParameters.h
but then you would have to build cm11 again
I am pretty sure the only way you are going to get the back cam to work is with those libraries
if you grep for ov5693 in the original files / libraries it probably will not be found, if you grep the 20d files, you should find it listed in the mm-qcamera-daemon, liboemcamera.so and the 3 chromatix files
Click to expand...
Click to collapse
its propably selinux and permission related
this most time cause bootloops
ckret said:
its propably selinux and permission related
this most time cause bootloops
Click to expand...
Click to collapse
idk
would need to see a logcat to be sure
can anyone help me out with this issue! I'm trying to port ubuntu touch for my device(Samsung Galaxy J5). But everytime when am trying to sync the sources using phablet-dev-bootstrap or repo init it throws out an error saying error 503 service unavailable. And what's the current stable branch for building ubuntu touch!!
ERROR:
[email protected]:/home/techkid# phablet-dev-bootstrap -r /home/techkid/cm13/ utouch/
INFO: phablet-dev-bootstrap:Changing to workdir /home/techkid/utouch
INFO: phablet-dev-bootstrap:Initializing repository
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
Get https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git
error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Service Unavailable
fatal: The remote end hung up unexpectedly
EDIT: Close this thread!! Have contacted canonical system admins about the issue,servers were down at that moment and now they have restarted the servers so everything's up and running fine.
ganesh varma said:
[...]
EDIT: Close this thread!! Have contacted canonical system admins about the issue,servers were down at that moment and now they have restarted the servers so everything's up and running fine.
Click to expand...
Click to collapse
How did you contact them? Because I want to try to port ubuntu touch to my phone, but have the same error downloading sources.
Thanks,
Stefano99
Stefano 99 said:
How did you contact them? Because I want to try to port ubuntu touch to my phone, but have the same error downloading sources.
Thanks,
Stefano99
Click to expand...
Click to collapse
You can contact the system administrators at channel #canonical-sysadmin in freenode IRC or upvote my bug and comment over here so that canonical will take any action immediately.
ganesh varma said:
You can contact the system administrators at channel #canonical-sysadmin in freenode IRC or upvote my bug and comment over here so that canonical will take any action immediately.
Click to expand...
Click to collapse
Submitted to your thread. Hope they solve this bug fast:fingers-crossed:
PS: now it works, thank you again!
Thank you,
Stefano99