yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) General] serasihay:
I guess the code commented out in the patch that you are referring to is the one that, in cli-auth.c, does the following aasignement:

password = getpass(prompt);

It makes sense, because from the debugging "session" I posted int my previous post, one could deduce that the problem is that a null string is passed to cli_auth_password ()...

But, unhappily, the function getpass is not provided by the Android C library (Bionic). If you try to build with a "corrected" patch, you end up with this error:

cli-auth.o:cli-auth.c:function getpass_or_cancel: error: undefined reference to 'getpass'

I'll try to find a workaround. Any help will be appreciated!
[Nexus 7 (2013) General] wolfdude:
Hi serasihay,

You're on the right track ;) That is indeed the function causing the seg fault. I've updated the post to have the correct URL to the CORRECT patch now. Please try again and let me know how it goes.

Cheers.
[Nexus 7 (2013) General] serasihay:
Hi wolfdude,

The corrected patch you've uploaded is like the one I already tried. As I was saying in my previous post:

So, in my opinion, it's a matter of finding an alternative to "getpass", or implementing a new one... I'm reading what would be the better solution.

Thank you again for your time!

Cheers.
[Nexus 7 (2013) General] wolfdude:
Ahh... apologies for not reading correctly. I see what you meant now. I did my compile/build on an x86 android device and I assumed that it would also work for ARM using the NDK. Let us know how you go with the getpass() alternative.

Thanks.
[Nexus 7 (2013) General] wolfdude:
Hi serasihay,

Ok... I've uploaded another patch this time to include a getpass() function which I pinched & modified from the GLIBC library. Hopefully it works as expected. Again... I didn't audit it for any security issues so use at your own risk ;)

Cheers.
[Nexus 7 (2013) General] serasihay:
Thank you very much for your help and efforts, wolfdude.

I've taken my chances with your new patch... ;) But the code doesn't compile, either. :(

Now the problem is with the "getline" function:

cli-auth.o:cli-auth.c:function getpass: error: undefined reference to 'getline'

I'll keep struggling with it as time allows...

Edit:

I've found a working getpass function. The code compiles and allows me to successfuly login to my remote machine!

https://github.com/CyanogenMod/android_external_dropbear/blob/cm-12.0/netbsd_getpass.c

When I get time I'll see if it is secure to include it and what would be the proper way to do so. I'm out of my depth here. :D Of course, feel free to make a new patch or whatever you consider appropriate, surely you're more experienced than I am!
[Nexus 7 (2013) General] wolfdude:
Good to know you have it working now. I'm no developer too so can't really comment on which ever is better. As long as it works right ;)

Cheers.
[Nexus 7 (2013) General] serasihay:
I've uploaded the patch that makes the dropbear client work for me.

https://goo.gl/ip6Tkb

Basically, it is the one you uploaded initially, but it corrects the problem with the getpass function by using the one implemented in the file netbsd_getpass.c.

To sum it up, my patch differs from your first one in that:

* Adds two new files, netbsd_getpass.h and netbsd_getpass.c.

* Modifies cli-auth.c to include the netbsd_getpass.h in order to use its getpass function.

* Modifies the Makefile.in so that the netbsd_getpass.c object is compiled and included into the dropbearmulti binary.

* Modifies options.h to change the path of the SSH which is used in scp.c to: _PATH_SSH_PROGRAM "/system/xbin/dbclient"; i.e.: it assumes that you do the appropiate symlink in /system/xbin...

Cheers!
[Nexus 7 (2013) General] wolfdude:
Good stuff! I'll update the original post to have a link to your patch.

Thanks.
[Nexus 7 (2013) General] serasihay:
I'll be happy if it helps anyone.

Thank you!
[Nexus 7 (2013) General] MonaLisaOverdrive:
If you have openssl ported to Android, there's a simple, useful patch that substitutes crypt with openssl's DES_crypt.

Link to the description (which contains a link to the patch) is here: http://www.gossamer-threads.com/lists/openssh/bugs/55836

Note: DES encryption isn't the best, but it's better than cleartext. I did look through the openssl headers/libs for an AES_crypt or 3DES_crypt but couldn;t find anything
[Nexus 7 (2013) General] tim.mothery@gmail.com:
static compile... 'No such file or directory" error

Excellent guide -- wolfdude & serasihay thank-you. I'm new to andriod and was clueless on how to do this.

I have the dbclient running, but only if I compile without the STATIC=1. Whenever I use static I get an "sh: ./dbclient: No such file or directory" error immediately upon execution. Any idea why this is happening?

I'm using a Motorola Moto G (the new Moto G sometimes called the Moto G2). As the non-static is quite a bit smaller and seems to run okay I'm wondering if not using static will bomb on other devices and I'm just lucky with the Moto G.
[Nexus 7 (2013) General] wolfdude:
Hi,

No idea why you can't compile it as static... but if the dynamic executable works for you then it should be ok.

Cheers.
[Nexus 7 (2013) General] jonny789:
I have tried to compile dropbear with both patches. But everytime it shows ::
[Nexus 7 (2013) General] MonaLisaOverdrive:
I'm late to this question, but you need to build dropbear from sources or could you use a prebuilt version?
[Nexus 7 (2013) General] serasihay:
I guess you're not using the gcc included in the Android NDK... :-?

'_PASSWORD_LEN' is defined in pwd.h; this header is provided with the Android NDK.

---------- Post added at 11:25 PM ---------- Previous post was at 11:19 PM ----------

From source.
[Nexus 7 (2013) General] fecaleagle:
Hey [MENTION=314908]wolfdude[/MENTION] and [MENTION=4852207]serasihay[/MENTION],

Thanks so much for putting this guide (and especially the patches) together. I used [MENTION=314908]wolfdude[/MENTION]'s patch and cross-compiled the correct version of DropBear for an Amazon Fire TV (2nd generation). I installed it and was able to produce and use the rsa and dss host keys, and the server appears to start without issue.

I am starting the server for testing purposes using the following command:

dropbear -A -N root -U 0 -G 0 -C password -d /sdcard/DropBear/dropbear_dss_host_key -r /sdcard/DropBear/dropbear_rsa_host_key -F -E

Everything seems to start correctly, but when I connect from my iPhone (Prompt 2), the stdout immediately replies:

[22370] Jan 04 10:17:35 Child connection from 192.168.1.158:58458

void endusershell()(3) is not implemented on Android

void endusershell()(3) is not implemented on Android

[22370] Jan 04 10:17:36 password auth succeeded for 'root' from 192.168.1.158:58458

[22370] Jan 04 10:17:37 Exit (root): Disconnect received

When I connect from Windows (Putty), I receive:

[22414] Jan 04 10:20:51 Child connection from 192.168.1.156:2776

void endusershell()(3) is not implemented on Android

void endusershell()(3) is not implemented on Android

[22414] Jan 04 10:21:09 password auth succeeded for 'root' from 192.168.1.156:2776

[22414] Jan 04 10:21:09 Exit (root): Exited normally

I have not attempted to re-compile using [MENTION=4852207]serasihay[/MENTION]'s patch, but I am wondering if you guys have a hunch as to what's going awry here. I initially tried using public-key authentication, and I receive the same message and disconnect.

Thanks,

William

Edit: Okay, when I attempt to connect from OpenWrt, which I believe uses a DropBear client, the server doesn't return anything different, but the client reports:

CANNOT LINK EXECUTABLE DEPENDENCIES: "libc.so" is 32-bit instead of 64-bit

I will look into it, but I assume this is a cross-compilation mistake, so maybe you guys can help me along. :)

Edit 2: Yes, according to this post, http://xdaforums.com/fire-tv/general/root-firetv2-ssh-unable-to-connect-t3259530, I must have built it using the wrong toolchain. Thanks to everybody on this forum for humoring me. It's taken me quite a bit of time to get my bearings dealing with Android.

Edit 3: So, I rebuilt using what seems to be the correct toolchain. The file command reports:

./dropbearmulti: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, stripped

Clients still receive CANNOT LINK EXECUTABLE DEPENDENCIES: "libc.so" is 32-bit instead of 64-bit.

I've posted my toolchain setup at, http://xdaforums.com/fire-tv/help/requesting-help-make-standalone-t3285824/post64641693#post64641693, if anybody would care to review it.
[Nexus 7 (2013) General] Geofferey:
If you are trying to compile this for 64bit android you will also need to modify

svr-chansession.c

in order to successfully login

& change

addnewvar("LD_LIBRARY_PATH", "/system/[COLOR="Red"]lib[/COLOR]");

to:

addnewvar("LD_LIBRARY_PATH", "/system/[COLOR="Lime"]lib64[/COLOR]");

or just comment out the line, which is probably better

[COLOR="lime"]/*[/COLOR] addnewvar("LD_LIBRARY_PATH", "/system/lib64"); [COLOR="Lime"]*/[/COLOR]

I spent the whole day looking for this very simple fix lol.

EDIT:

I'm still having issues with the password implementation. I can login with dropbear or openssh terminal clients, but other apps that use a graphical interface such as putty, winscp, filezilla, etc all fail to login with password.
[Galaxy Note 4 Q&A, Help & Troubleshooting] r33fd:
I run lollipop since the first day I got my device and I noticed that games weren't as smooth as I expected them to be .

Recently I saw some comments on tech sites about a gpu bug in lollipop rom for exynos and I run 3dmark . My score was 11k and 3dmark said there was something wrong with my device .:eek:

I tried to disable cpu power saving and automatic brightness and run the test again but with no difference .

So has anyone found a fix/workaround for this problem ? Any idea would be appreciated !

My configuration : Note 4 N910CXXU1BOC3 (Romania) stock (not rooted) .
[Android Themes] bhavstech:
About Uranium UI:

Did you always want a CM12 Theme that had attractive colours and not some sort of dark and dull UI?

Uranium UI is your answer!

It is a CM12 theme with vivid colours and user interface just like the name!

This theme is based on vivid colours which is perfect for people who like Colourful UI!

The Highlighting point of this theme is that it doesn’t focus on a Single colour UI or too dark or too light UI, the colors are found and generated such that they look beautiful even if they are different for different apps!

HAVE A LOOK YOURSELF

DOWNLOADS:

FREE:

https://play.google.com/store/apps/details?id=com.cytech.uranium

Substratum:

https://play.google.com/store/apps/details?id=com.cytech.uraniumsubstratum

DONATE:

https://play.google.com/store/apps/details?id=com.cytech.uraniumuifull

DO RATE IT AND CONSIDER BUYING THE DONATE VERSION IF YOU LOVE IT ! IT WILL BUY ME A MIDNIGHT COFFEE TO CONTINUE MY WORK!
[Android Themes] kvrjsoni:
Real Nice..

Great work :thumbup:

Sent from my Nexus 5
[Android Themes] saurabh40629:
looks cool and hot at the same time. Will try soon.
[Android Themes] moralesnery:
I would love to see the navigation buttons using white instead of cyan, maybe an optional setting?

Thanks in advance for your hard work, looks great on a Moto G
[Android Themes] bhavstech:
i will consider it in a future update
[Android Themes] bhavstech:
Guys do report bugs if any and suggestions are always welcome so that i can improve the next version
[Android Themes] bhavstech:
Theme updated with cm13 support!
[Android Themes] bigstunta101:
Cm13 theme engine is out already?
[Android Themes] bhavstech:
Yeah its out in unofficial builds
[Android Themes] vworld3:
Pls, my phone is popping out unfortunately com.android.phone has stopping. How can I correct it. Help pls
[Android Themes] TechnoStuff:
Just reboot the device it should fix the problem

Or uninstall > reboot > reinstall the theme
[Android Themes] bhavstech:
Can be rom issue as well because theme is working perfectly on my phone
[Android Themes] bhavstech:
Substratum Support added
[Samsung Gear 2] empire1990:
Hi! I would like to take a photo with Gear 2 and then send it to a friend, only using the watch (without using my connected Samsung S4 mini). Is this possible and how?
[Samsung Gear 2] Bruno_Brunetti:
Nope, I haven't found a way. There are no apps that take advantage of the share feature
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
Hello,

I rooted my phone (S6) by using ping pong root application, then i unrooted and then i wiped the data and cache.

Now - Download Mode

The Knox Warranty Void is 0. Binary and System are official.

But,

AP SWREV

and

KERNEL AP SWREV

are 1

Is the warranty still available?

Sorry for my poor English :o

Thank you
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
23 hits and no replies :(
[Galaxy S6 Q&A, Help & Troubleshooting] x017in:
I think your warranty is still on
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
No, i didn't use Odin, i used application(apk) for root.

Thank you for replies!

Can somebody who didn't root his/her phone check the download mode? Is it the same? :)
[Galaxy S6 Q&A, Help & Troubleshooting] x017in:
confirmed same in mine
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
unrooted original untouchable S6? :o
[Galaxy S6 Q&A, Help & Troubleshooting] x017in:
Yes
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
After buying the phone, if there is a mechanical problem, in 30 days time i can change it with brand new one. At night time the photos are blurred sometimes. I can send it to the service. I don't know.

Thank you!
[Galaxy S6 Q&A, Help & Troubleshooting] candask:
Is it normal under fluorescent light blurred photos?
[JAMin, XDA Neo, S200 ROM Development] antoniomch:
Hi

Can any one post here the HTC add-on cab's like the touch one in 4.0.0.4 ver?

And the HTC phone pad too?

Thx
[JAMin, XDA Neo, S200 ROM Development] NetrunnerAT:
luke ... use the force!

http://xdaforums.com/showthread.php?t=311225
[JAMin, XDA Neo, S200 ROM Development] gullum:
some truff

Home plug, Audio Manager + audio homeplug, commanager, Dialer and Voice Recorder.

I'll uppload more later I'm trying to get the new camera working and after that I'll try to get the other stuff working

View attachment 42511

View attachment 42512

View attachment 42513

View attachment 42514

View attachment 42515
[JAMin, XDA Neo, S200 ROM Development] gullum:
more stuff

So if you want a splash screen lokking like this

View attachment 42517

Download and install this

View attachment 42516

its the same as from the link above but that on can't be installed on a prophet so I cchanged it to work with our Girlfriend the Prophet :p
[JAMin, XDA Neo, S200 ROM Development] antoniomch:
thank you all :)
[JAMin, XDA Neo, S200 ROM Development] floepie:
Does that change the 1st (manufacturer) or 2nd (windows mobile) splash screen?
[JAMin, XDA Neo, S200 ROM Development] Aton.amen:
Am I missing something

Hey guy, i have a question. I installed the Touch home screen plug in on my T-mobile wing and its not running. AM i missing something?:confused:
[JAMin, XDA Neo, S200 ROM Development] gullum:
Yes It changes the first 2 screens when the IPL SPL is displayed
[JAMin, XDA Neo, S200 ROM Development] Aton.amen:
NEVERMIND

i uninstalled it and ran the cab again and now it work beautiful. Also I noticed that the Weather will only update when i connect to wifi. But it look beautiful!
[JAMin, XDA Neo, S200 ROM Development] gullum:
HTC ELF camera

I'm making progress I finaly got it to load but it's not working right yet I got it working once and it's dam cool no more Stylus to change settings :)

hoping to get it to work soon
[JAMin, XDA Neo, S200 ROM Development] tonydeli7:
nice to hear,you're working on the new camera....:D Keep an eye on the battery drain mate,because there were reports in the past,that after the installation of Camera 4.03,the battery lasted 1- day...even with the camera app closed....:eek:
[JAMin, XDA Neo, S200 ROM Development] kingzmx:
Why do you want the HTC Home Plugin?

After I installed the HTC home Plugin in my s200...I found that my device went slowly....
[JAMin, XDA Neo, S200 ROM Development] gullum:
Cab files are the reason

when instaling cabfiles your phone will be slower but if these HTC stuff are coocked into the rom as OEM packages then it's not slowed down
[JAMin, XDA Neo, S200 ROM Development] mr_yellow:
the attachment seems to be corrupted. I can't open splash.zip... Do you mind reposting it?

Thanks.,
[JAMin, XDA Neo, S200 ROM Development] emmeborn:
Try extracting with winrar. Worked like a charm for me.
[JAMin, XDA Neo, S200 ROM Development] gullum:
Camera is working

The camera is now working. All functions are working but it's realy slow. it takes about 5 minuts to start and same with changing profile. but when a profile is loaded is realy good and working like it should as long as you don't change profile.

So my first goal is acomplished, now I have to get it stable and faster.

Camera is now working 100% and ready for beta testing

I will open a new thread for the testing
[JAMin, XDA Neo, S200 ROM Development] Rooks:
Can u plz upload again "HTC_Audio_Manager_Today_Plugin.cab" again, i can't download it. Download stops after downloading 261kb data.
[JAMin, XDA Neo, S200 ROM Development] jincongz:
Why not just use PDAViet's 4.0.0.4 or wait until his 4.0.0.5 Touch? It works, and god knows its faster than just installing it.
[JAMin, XDA Neo, S200 ROM Development] Rooks:
There's no htc stuff in 4.0.0.0.5 (Only X-Button)
[JAMin, XDA Neo, S200 ROM Development] Rooks:
And where's the HTC Flow?:confused: :confused:
[JAMin, XDA Neo, S200 ROM Development] rondol1:
With all respect, but..... If you had read the forum, you should know that the...0.5 CROSS version (the one released) is without al the touch stuff. There will come another version ...0.5 TOUCH. But it is still not certain when it will be released. If you want the TOUCH, you have to wait awhile.
[JAMin, XDA Neo, S200 ROM Development] Rooks:
Well, for sure, but is it not available independent like other HTC apps?
[JAMin, XDA Neo, S200 ROM Development] JAYmasta:
already exist home plugin with 5 buttons, anybody have this **** ???
[JAMin, XDA Neo, S200 ROM Development] congbaobao:
u may use the newest version from PDAVIET CRoss and enjoy this ****. :)
[JAMin, XDA Neo, S200 ROM Development] cpc:
Great application suite from HTC. Thanks a lot for sharing.
[JAMin, XDA Neo, S200 ROM Development] gullum:
I'm working on a new rom as mentiond before in this post.

so far I've got everything working exepte the camera 4.11 :( I'm missing some dll but here are some screenshotts
[JAMin, XDA Neo, S200 ROM Development] davidebeatrice:
:) GOOD!!!!!!

when??
[JAMin, XDA Neo, S200 ROM Development] jincongz:
I'll be waiting for it...

And how do I set the HTC Home to 12h time?
[JAMin, XDA Neo, S200 ROM Development] rondol1:
The same way you always did. It not a function within HTC Home but a setting in the Regional Settings panel.
[JAMin, XDA Neo, S200 ROM Development] Putra:
Yes.. anyone has the cab file for the HTC Home with the 5 buttons?

I'm still trying out Fantastic's ROM before I'll switch to the latest PDAviet 05 cross ROM
[JAMin, XDA Neo, S200 ROM Development] JAYmasta:
Try Download from this page but there russion language I think you undarstand how to dowload 5 buttons home !!! http://4pda.ru/forum/index.php?showtopic=45105&st=450
[JAMin, XDA Neo, S200 ROM Development] lightman3dd:
And something for english speaking peoples? ;-)
[JAMin, XDA Neo, S200 ROM Development] JAYmasta:
Keep http://4pda.ru/forum/attach/877731/JUVS_HTC_Home_Color.cab
[JAMin, XDA Neo, S200 ROM Development] Putra:
THANX! This cab works! And the HTC Home is in COLOR too! Very nice!

The previous cab posted is exactly the same 3 button that I already have.

I unticked my existing HTC Home in Today Items, then installed this one. And it works immediately after a soft reset.

But this one only has 4 buttons (tabs)? Today, weather, Apps and profiles.

There is another version with 5 buttons right? Though I don't think that one is in color.
[JAMin, XDA Neo, S200 ROM Development] hma4:
Well you can upgrade your room to PDAVIET 4.0.0.0.5a Cross, it's one of the most stable roms out there and it comes with 5 tab home plugin. also the home plug in icons are colorful. If you got tierd of the colorful icons then you can get the image files from here:

http://xdaforums.com/attachment.php?attachmentid=44053&d=1184553693

once you download them , just extract them in your windows folder and soft reset to get the black theme.
[JAMin, XDA Neo, S200 ROM Development] JAYmasta:
On Pdaviet v.4.0.0.5 Cross when You inastall all home plugins is 4 buttons but home plugin is 5 buttons:

-----------

COLOR - 5 buttons

http://4pda.ru/forum/attach/877731/JUVS_HTC_Home_Color.cab

you can see how it's looking in the middle of this page:

http://4pda.ru/forum/index.php?showtopic=45105&st=450

---------------------------------------------

BLACK - 5 buttons

http://4pda.ru/forum/attach/870978/JUVS_HTC_Home.rar

you can see how it's looking in the middle of this page:

http://4pda.ru/forum/index.php?showtopic=44159&st=150

:)
[JAMin, XDA Neo, S200 ROM Development] Putra:
Thanx... I've already downloaded it and will flash to that after a few more days of playing with Fantastic's ROM with touchFlo
[JAMin, XDA Neo, S200 ROM Development] Kaoh:
eh? ;)

I installed it on my Fantastic Mobiz b4 and it only has 4 tabs:

I think this has todo with the home plugin not really connecting to the Cube.

The 5th tab is filled with the same contact from the cube, so if it can not find the cube it only uses 4 tabs I guess.

Even though for this rom the cube is present, but it probably uses a diferent dll or something to find the contacts and that one is not the correct version I guess.
[JAMin, XDA Neo, S200 ROM Development] bzinko1:
Do you have HTC home Plugin with 5 buttons for wizard guy's?
[JAMin, XDA Neo, S200 ROM Development] gullum:
http://gullum.4shared.com/

there are some cab file including the 5 buttom home plug. my gues is that it should work for wizard too because the 3 buttom wizard version works with prophet :D
[JAMin, XDA Neo, S200 ROM Development] rondol1:
I tried to change the colored icons from PDAViet 0.5a, but the original file seem to be protected or in use, even after i have disabled the plug-in.

I'm missing something but can't figure out what. How do I make a change with the image-files I have downloaded from here?
[JAMin, XDA Neo, S200 ROM Development] JAYmasta:
Gullum can you put here cab - slide2unlock. please
[JAMin, XDA Neo, S200 ROM Development] gullum:
go here A_C made the slide2unlock
[JAMin, XDA Neo, S200 ROM Development] kopus:
Can some post the background image from 4.0.0.0.4 PV or the today screen theme?

thanks
[JAMin, XDA Neo, S200 ROM Development] vijaysv:
Contacts not opening

Hi, I just installed The Fantastic mobiz b4. Everything works GREAT!! the only thing that does not work is the contacts. Does any1 have a solution to that? Is there a 3rd party contacts tool i can use instead?
[JAMin, XDA Neo, S200 ROM Development] rondol1:
his issue is discussed on several other place, but I'll tell it again....

First, do a hard reset after the flashing is done. Do this in the proper way:

Press Camm and Comm together an press the stylus in the hole. Release stylus, but keep the buttons pressed until you get a message on screen.

Then press the green Connect button. Tou should get a message about formatting the memory. After this, you Hard Reset is completed.

Second, don't place you contactlist back to your device with anything else then Active Sync. Regular backup software places back the file where they found them, but as you just totally reorganised your organizer, this isn't necessarily the place where your new contact-program expects to find its data.

In short: Do a proper Hard Rese and then Actice Sync.
[JAMin, XDA Neo, S200 ROM Development] The_Sisco:
Thanks

Thanks guys

Ive just bought the HTCTyTN II as my new works phone (old one was an SPV500) just going to play.

a little pised that it came with no mini sd though.:(

Thanks again

The_Sisco:)