Hey guys, I have been working on this for a while.
What I have put together is a flashable ZIP package that automatically installs & configures an SSH server, with SFP and rsync functionality.
Being a big nerd and working with Linux on a daily basis, I use Putty and WinSCP all the time and am very familiar & happy with them.
USB is generally a bit faster, but MTP sucks, so I generally really like working with my tab's file system via WinSCP.
When working with ROMs a lot, I often do factory resets and things, so the various "SSH packed into an app" solutions aren't very convenient for me. My dream was to have a package I could flash after flashing a ROM to add SSH onto my tab.
I have now successfully completed that setup.
The flashable ZIP mostly just copies the files into place and then sets permissions.
The real work is done by the init script I wrote, which checks for the presence of host key files and auto-generates them if they're missing, then launches the SSH and SFTP servers. It also exports an OpenSSH format copy of the host key to /data/local so you can download that and convert it to PPK using PuttyGen for passwordless logins.
This should work on ANY Android ROM that supports init.d scripts. I have tested it on CM10.
I also built an uninstaller ZIP. When you "flash" it via CWM, it simply deletes the files that were installed, leaving the rest of your system untouched.
Should be flashable with CWM 5 and greater. I used CWM 5 and 6 in my testing. Hope this is useful to some people
Looks interessting,gonna try it.
Gesendet von meinem GT-P3110 mit Tapatalk 2
Setialpha said:
Looks interessting,gonna try it.
Gesendet von meinem GT-P3110 mit Tapatalk 2
Click to expand...
Click to collapse
The settings for the server can be modified at /system/etc/init.d/95sshd. The primary things people would maybe want to change are the listen port and the password. The default port is 22 and the default password is "admin". The nice thing is that you can use the server to gain access to the tablet and then when you're in its easy to get to and modify the init script, and also download your keyfile for PPK generation
Nice work. This will be very useful to me.
This should run on any jb device, shouldn't it?
Well, I'm launching the server via an init.d script. I don't know if the plain version of JB supports those, but if it does, sure.
Is you have tried this, can you report if it has any compromise on battery life over say sshdroid etc. Thanks.
Sent from my GT-I9100 using xda app-developers app
That would be very useful. I haven't tried your zip yet, so I will comment after testing.
Thanks!
Am actually trying to use it now. Will give feedback.
Sent from my GT-I9100 using xda app-developers app
---------- Post added at 05:30 PM ---------- Previous post was at 04:32 PM ----------
@divinitycircle; is there a way to start+stop the server. I know the script should be executed at startup but is there a way to start/stop later after boot. Also the server did not start for me after boot. The log just said server did not start. Any reason for this? Could it be because I already have SSHDROID installed. Is it necessary I uninstall it before yours work? Thanks a zillion.
Sent from my GT-I9100 using xda app-developers app
---------- Post added at 05:54 PM ---------- Previous post was at 05:30 PM ----------
Seems the sshdroid was interfering. I uninstalled it and I made some progress. Now the server was able to start, however there still some issues..
1. Winscp say server is not running sftp protocol. I changed to Scp.
2. Error with directory listings. Winscp gave this ; error listing dir. Unexpected dir. Listing line in drwxr-xr-xr root root acct. Any help how to solve thiswill be appreciated. Thanks.
Sent from my GT-I9100 using xda app-developers app
I was never able to get it working to my liking without having an app installed, and I own two of the paid SSH server apps, so I just added it to the list of things I backup / restore via Titanium Backup.
Its not clear if there's a generic dropbear binary available, and if so, how to make the SCP server work.
I had like no success in getting SCP up and running.
DivinityCycle said:
I was never able to get it working to my liking without having an app installed, and I own two of the paid SSH server apps, so I just added it to the list of things I backup / restore via Titanium Backup.
Its not clear if there's a generic dropbear binary available, and if so, how to make the SCP server work.
I had like no success in getting SCP up and running.
Click to expand...
Click to collapse
OK. Thanks. There's some promising lead, if I get anything will share. Can't buy app from the market because am in a country where payment online is still not accepted by google etc.
Sent from my GT-I9100 using xda app-developers app
I think the missing link to make ur flashable zip work with sftp protocol may be the inclusion of functions of libcryt. So. This is the only file that is present in sshdroid but but seems not included in the zip. This article also showed how it can be done. www.linuxexplore.com/how to sftp secure with dropbear.
Sent from my GT-I9100 using xda app-developers app
Related
Ok so this started out as a small project to make my day to day phone functions easier and quicker but I thought I might share it incase anyone thought my AdbTool was helpful or just nice to have.
Functions so far:
1. Check for device
2. Push or Pull a File
3. Install .apk
4. Reboot
5. Root your Droid X
6. Change bootanimation
7. Push framework (specifically for framework)
8. issue whatever adb command you need to with out the extra typing
9. Set project
10. Error log
11. Clean up folder
There are more functions to come in the future so let me know if you like this script and what you wanna see added. There is no install just unzip and open the .bat file.
This sounds great! Though I'm on Linux machine, so I don't think ill be able to use it :/
Sent from my DROIDX using XDA App
No sorry, I should have specified. It is a Windows script... Just wait though, because Sunday I will be getting a desktop that is already running linux. If you really want I will take the time to make a script to run for linux?
Sent from my DROIDX using XDA App
rooting the dx doesnt work for me :/
Huh... what is happening when you enter that option? Sorry for the long time for me to post I missed the email alert.
Sent from my DROIDX using XDA App
I'm assuming this doesnt allow root for 2.3.3 ota correct?
since all I see is rageagainstthecage in the files
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
ljbaumer said:
This looks like a really useful program! I might do some work this weekend on it and see if I can get it working for the DROID 2 and port it over to UNIX machines.
If I set it up for unix I will add an SBF option too.
Woa just realized this is a really old thread
Click to expand...
Click to collapse
Yeah, this thread is quite old (almost a year) and I am sure the program/script needs to be updated to work.
It is a good idea though (if it can be updated)
D.
I'd like to make a request for a Mount and UnMount command.
fyi....you spelled Folders wrong in the main menu "Floders"
.
I can make the program for yall. Yall just need something for shell or a gui for windows?
whatever's easier for you, either would be appreciated it
i have adb properly installed by doing adb devices in cmd it shows my dx
but when i use your tool it says it cannot find the path specific
This is not only my first Android app, but this is also my first dive in Java. Please be gentle as I expect there are several uncaught / improperly handled exceptions.
This app will backup selected files to a zip file that can be restored via cwm. For now, that is all it does. It can be handy for the oc/uv crowd since it will allow you to keep a backup of a good S_volt_scheduler init file to flash in case your new setting are too aggressive. It does not currently restore permissions, nor does it assume root permissions.
todo:
Obtain root to copy any file
Integrate a file selector so read permissions will not be an issue.
Detect/Restore permissions
Possible feature additions:
Create a restore.zip from current files based on an update.zip you want to apply. Could save you from boot loops when messing with system files.
Create a restore.zip given a file, a target directory, and permissions.
I will probably add this to the market once I get through the todos and initial bugs.
Changelog:
20110303
Multi-file capable. OIFileManager does not yet support multi-select, so each file must be selected seperately
Exception caught for mission OIFileManager
_delete.zip file seems to work correctly in recovery
Since I am not yet using root and OIFileManager will not assume root, there are some directories that cannot be viewed, /data/app for example. There are also some files that can be selected but cannot be copied due to their permissions.
Requires OIFileManager
Nice, will be useful
This looks like it could be a useful/powerful app. It could definitely benefit from some features (more than one file/location would be great) but I can see myself using this.
Thanks!
gibson3659 said:
This is not only my first Android app, but this is also my first dive in Java. Please be gentle as I expect there are several uncaught / improperly handled exceptions.
This app will backup 1 file to a zip file that can be restored via cwm. For now, that is all it does. It can be handy for the oc/uv crowd since it will allow you to keep a backup of a good S_volt_scheduler init file to flash in case your new setting are too aggressive. It does not currently restore permissions, so the uses are currently limited.
todo:
Figure out why the _delete.zip does not delete the target file when run via cwm.
Detect/Restore permissions
Possible feature additions:
Enable backup/restore of multiple files
Create a restore.zip from current files based on an update.zip you want to apply. Could save you from boot loops when messing with system files.
Create a restore.zip given a file, a target directory, and permissions.
I will probably add this to the market once I get through the todos and initial bugs.
Requires oifilemanager.
Click to expand...
Click to collapse
Can u load the java app here? I can try to look into that and see if I can improve on the exception handling part.
fantastic idea
good job
Thanks for taking a look. Have anyone of you actually tried it?
It fc. On me... :'(
Sent from my SGH-I897 using XDA App
Do you have oifilemanager?
Sent from my SGH-I897 using XDA App
gibson3659 said:
Do you have oifilemanager?
Sent from my SGH-I897 using XDA App
Click to expand...
Click to collapse
Forgot that
Sent from my SGH-I897 using XDA App
Works like a charm! thank you so much! Perfect cause I love the stock music player and not all rims have it so this is great for installing it!
Sent from my SGH-I897 using XDA App
I am working on multiple file support, so look for a new version in a day or two.
Sent from my SGH-I897 using XDA App
just installed it, however it force closes as soon as I try to choose a source or destination file (happens as soon as I press the buttons.
Herp derp Captivate XDA app.
Make sure you install OIFilemanager from the market. I need to catch this exception and provide a link to OIFileManager.
Great App
Want to say thank you for making this. I've had all sorts of trouble getting apps from different roms to install to the system folder on my current rom. Now I can mix and match different apps easily without much pain. Thanks!
bpurkapi said:
Want to say thank you for making this. I've had all sorts of trouble getting apps from different roms to install to the system folder on my current rom. Now I can mix and match different apps easily without much pain. Thanks!
Click to expand...
Click to collapse
You are welcome. I actually have another app in mind to fully address that need, but I want to get further along with this one first. Since I am working on these on stolen time (I don't have any free time), it will take a while.
Since the apps seem to restore without permission issues, I may put that on the back burner. After I complete multi-file support, which of the future features from the op would you like to see first.
gibson3659 said:
Make sure you install OIFilemanager from the market. I need to catch this exception and provide a link to OIFileManager.
Click to expand...
Click to collapse
And I need to learn how to read through a thread for answers to my problems before I post about them.
New Version
Changelog:
20110303
Multi-file capable. OIFileManager does not yet support multi-select, so each file must be selected seperately
Exception caught for mission OIFileManager
_delete.zip file seems to work correctly in recovery
Since I am not yet using root and OIFileManager will not assume root, there are some directories that cannot be viewed, /data/app for example. There are also some files that can be selected but cannot be copied due to their permissions.
Can I get a gauge on the interest level for this app? Should I move this to the I9000 forum?
I think it's really useful when working whit OC/UV.
gibson3659 said:
Can I get a gauge on the interest level for this app? Should I move this to the I9000 forum?
Click to expand...
Click to collapse
I think you should get with rom devs, this should become an integrated feature for all rom upgrades, regardless of phone
at least get with the AIO dev, if you arent already
Hi,
When I got my Droid, I couldn't believe all the stuff that came preinstalled with the phone, so I started deleting everything that seemed unnecessary. Given the fact that I already reflashed the phone 20 times in the last week, I made a little script to help me out. I thought I would share it with you in case it comes handy to someone.
BIG NOTE 0: There's a system part that Motorola uses to get stuff from your phone. It's called Data Collector. Whenever any app crashes, it makes quite a big dump, with your network carrier, signal level, applications installed, applications running and a lot of stuff that isn't opt-in. In fact, one of the scripts (/system/bin/bugtogo.sh) can take screenshots of your phone. I don't like being spied, so I tried to remove it all. Cannot be certain though, but I would recommend you to remove, if you like your privacy, at least, the DataCollector apks, and to empty the bugtogo.sh script from /system/bin
BIG NOTE 1: I don't use this phone in the US, so I don't know if I'm breaking part of the CDMA support. It still shows up in every settings and I don't have any reason to think it won't work, but since I can't test it in anything except GSM/UMTS, I can't know it for sure.
BIG NOTE 2: The script will install Apollo (Music Player), Nova Launcher (homescreen replacement), and Cyanogenmod's Gallery app. If you don't want them and want to keep Blur and the default gallery (the script doesn't remove the music player just in case it's needed by some other app), then don't use this script, or modify it as you wish.
BIG NOTE 3: I am not responsible for anything if this causes a mess. Worst case scenario you'll need to flash back the system partition (fastboot flash system system.img), and then reroot your phone. You have been warned.
This is what it removes:
Code:
/system/app/DataCollection.apk
/system/app/DataCollection.odex
/system/app/DataCollectorProvider.apk
/system/app/DataCollectorProvider.odex
/system/app/DataCollectorService.apk
/system/app/DataCollectorService.odex
/system/app/blur-services.apk
/system/app/blur-services.odex
/system/app/blur_facebook.apk
/system/app/blur_facebook.odex
/system/app/blur_flickr.apk
/system/app/blur_flickr.odex
/system/app/blur_kaixin001.apk
/system/app/blur_kaixin001.odex
/system/app/blur_lastfm.apk
/system/app/blur_lastfm.odex
/system/app/blur_orkut.apk
/system/app/blur_orkut.odex
/system/app/blur_photobucket.apk
/system/app/blur_photobucket.odex
/system/app/blur_picasa.apk
/system/app/blur_picasa.odex
/system/app/blur_youtube.apk
/system/app/blur_youtube.odex
/system/app/vzw_vnav_DROID4.apk
/system/app/vzwapnpermission.apk
/system/app/MyVerizon.apk
/system/app/VerizonSSOEngine.apk
/system/app/MotoVzwAtCmdPlugin.apk
/system/app/MotoVzwAtCmdPlugin.odex
/system/app/VzwController.apk
/system/app/VzwController.odex
/system/app/VzwDeviceSetup.apk
/system/app/VzwDeviceSetup.odex
/system/app/VzwEntitlementService.apk
/system/app/VzwEntitlementService.odex
/system/app/VzwPhoneService.apk
/system/app/VzwPhoneService.odex
/system/app/VCast.apk
/system/app/VCastStub.apk
/system/app/VCastTones.apk
/system/app/VCASTVideo.apk
/system/app/VmmGallery.apk
/system/app/com.motorola.android.server.ims.apk
/system/app/com.motorola.android.server.ims.odex
/system/app/com.motorola.android.settings.aplogd.apk
/system/app/com.motorola.android.settings.aplogd.odex
/system/app/VmmBackupManager.apk
/system/app/VmmBackupManager.odex
/system/app/VmmGallery.odex
/system/app/SmartActionFW.apk
/system/app/SmartActionFW.odex
/system/app/SmartActions.apk
/system/app/SmartCarDock.apk
/system/app/SmartDock.apk
/system/app/ZumoService.odex
/system/app/ZumoService.apk
/system/app/WelcomeWebtop.odex
/system/app/WelcomeWebtop.apk
/system/app/WeatherWidget.apk
/system/app/VZWInstaller.apk
/system/app/Vvm.odex
/system/app/Vvm.apk
/system/app/VSuiteApp.apk
/system/app/VRDClient.apk
/system/app/VMMServiceInterface.odex
/system/app/VMMServiceInterface.apk
/system/app/VideoSurf.apk
/system/app/Videos.apk
/system/app/VideoCalling.apk
/system/app/Swype.apk
/system/app/SocialShare.odex
/system/app/SlingBox.apk
/system/app/SocialShare.apk
/system/app/SlackerRadio.apk
/system/app/RichLocationVzW.apk
/system/app/Protips.odex
/system/app/Protips.apk
/system/app/PlusOne.apk
/system/app/PhotoEditor.odex
/system/app/PhotoEditor.apk
/system/app/OnlineAlbum.odex
/system/app/OnlineAlbum.apk
/system/app/NflMobile.apk
/system/app/Netflix.apk
/system/app/MusicStore.apk
/system/app/MotorolaAccountSetup.apk
/system/app/MotorolaAccountSetup.odex
/system/app/MotoEmailConfig.apk
/system/app/MotoDockHelperService.odex
/system/app/MotoDockHelperService.apk
/system/app/MotoConnect.odex
/system/app/MotoConnect.apk
/system/app/MotoCastDashboard.odex
/system/app/MotoCastDashboard.apk
/system/app/motoactv.apk
/system/app/MotMusic.apk
/system/app/MotGallery.apk
/system/app/MCDownloadManager.odex
/system/app/MCDownloadManager.apk
/system/app/Kindle.apk
/system/app/JunosPulsePlaceholder.apk
/system/app/IlsVzW.apk
/system/app/HuxVmmSetting.odex
/system/app/HuxVmmSetting.apk
/system/app/HuxSnCClient.odex
/system/app/HuxSnCClient.apk
/system/app/GuidedTours.apk
/system/app/GuidedTours.odex
/system/app/HelpCenter.apk
/system/app/FileManager.apk
/system/app/FileManager.odex
/system/app/Facebook.apk
/system/app/DockService.odex
/system/app/DockService.apk
/system/app/DlnaSystemService.odex
/system/app/DlnaSystemService.apk
/system/app/DLNA.odex
/system/app/DLNA.apk
/system/app/DemoMode.odex
/system/app/DemoMode.apk
/system/app/ContactIce.odex
/system/app/ContactIce.apk
/system/app/Cmas.odex
/system/app/Cmas.apk
/system/app/BuaContactAdapter.odex
/system/app/BuaContactAdapter.apk
/system/app/BlurUpdater_VZW.odex
/system/app/BlurUpdater_VZW.apk
/system/app/BlurChooser.odex
/system/app/BlurChooser.apk
/system/app/BackupRestoreConfirmation.odex
/system/app/BackupRestoreConfirmation.apk
/system/app/BackupAssistanceClient.odex
/system/app/BackupAssistanceClient.apk
/system/app/ArcVideoEditorLite.apk
/system/app/android-syncservice-app.apk
/system/app/OutOfBox.odex
/system/app/OutOfBox.apk
/system/app/FriendFeed.apk
/system/app/FriendFeed.odex
/system/framework/com.motorola.MCDownloadLibrary.services_lib.jar
/system/framework/com.motorola.MCDownloadLibrary.services_lib.odex
/system/framework/com.motorola.motoconnect_lib.jar
/system/framework/com.motorola.motoconnect_lib.odex
/system/framework/com.motorola.vzw.vmm.helper.jar
/system/framework/com.motorola.vzw.vmm.helper.odex
/system/framework/com.motorola.vzw.vmm.util.jar
/system/framework/com.motorola.vzw.vmm.util.odex
/system/framework/com.scalado.android.photoeditor.jar
/system/framework/com.scalado.caps.jar
/system/framework/com.verizon.phone.jar
/system/framework/com.verizon.phone.odex
/system/framework/com.vzw.android.gex.jar
/system/framework/com.vzw.android.gex.odex
/system/framework/com.vzw.android.hux.jar
/system/framework/com.vzw.android.hux.odex
/system/framework/com.vzw.android.jar
/system/framework/com.vzw.android.odex
/system/framework/com.vzw.android.smart.jar
/system/framework/com.vzw.android.smart.odex
Instructions:
1. Root your phone if you haven't already
2. Install Busybox from Google Play if you haven't already
2. Uncompress the zip into your internal sdcard. You should get this:
Code:
/sdcard/removecrap/Apollo.apk
/sdcard/removecrap/Gallery2.apk
/sdcard/removecrap/com.teslacoilsw.launcher-1.apk
/sdcard/removecrap/remover.sh
3. Run from a terminal on the phone, or from adb (always as root)
sh /sdcard/removecrap/remover.sh
4. Wait until the phone reboots
5. 200 extra Mb of system and a lot more free ram for your apps. Oh, and Motorola won't get another bug report from you
EDIT: Ooops, Reupdated the zip file, it was deleting one extra file (motosignature inside the framework folder)
EDIT2: Didn't catch Carrier IQ's qer binary on /xbin. Unfortunately we can't touch those binaries since they're in the randisk, so I updated the script so it removes the logfile qe generates and replaces it with a folder so it can never write the scan results again (thank you bofh.bug for the links!)
That's great, but you'll probably have trouble installing whatever official update comes next, since the updates generally expect certain apps to exist (with correct checksums too) so that they can be updated.
Sent from my DROID4 using Tapatalk
highlandsun said:
That's great, but you'll probably have trouble installing whatever official update comes next, since the updates generally expect certain apps to exist (with correct checksums too) so that they can be updated.
Sent from my DROID4 using Tapatalk
Click to expand...
Click to collapse
Probably OTAs will fail after running the script, but fixing it is as easy as reinstalling the system partition with fastboot and then applying the OTA
Sent from my DROID4 using xda app-developers app
This does disable all data connectivity (3G/4G) for CDMA users, you can still receive texts and calls, but will not be able to get data services.
When I have time I will make update this script to work with CDMA users.
arleslie said:
This does disable all data connectivity (3G/4G) for CDMA users, you can still receive texts and calls, but will not be able to get data services.
When I have time I will make update this script to work with CDMA users.
Click to expand...
Click to collapse
Were you able to fix the script so it works for CDMA users? Or, do you know what apps breaks it?
Very nice script, thanks. Easy way to run it by using Root Browser: open as script. But as for me QuickPick is better than ICS Galerry
Sent from my DROID4 using xda app-developers app
Hi biktor_gj , could you make a similar script for Android 4.1.2? Very grateful in advance
Tanzior said:
Hi biktor_gj , could you make a similar script for Android 4.1.2? Very grateful in advance
Click to expand...
Click to collapse
I did again the script for the jelly bean update. This time it removes less crap, since it seems Motorola left a bit less than on previous versions. This will remove the annoying "Foreign card" warning when you boot the phone with some non-verizon sim, the acoustic warning when you turn up the volume, smart actions and so on.
IT WON'T REMOVE THE APPS. It will leave them here:
Apps: /system/app/oldapps
system binaries: /system/bin/oldbin
Framework: /system/framework/oldframework
If you encounter any problem, you can simply move back the files through adb and the phone will be like before applying the script.
NOTE: Only tested on GSM. Probably won't work on CMDA since it's missing most of the Verizon stuff. If you can identify which apps are needed for CDMA to wokr again tell me and I'll update the script accordingly.
I run the script from ADB and worked like a charm. Been using it for 24hours and no problems so far, but you never know, so use at your own risk
Code:
[email protected]:~/Documents# adb push removecrap2.sh /sdcard/removecrap2.sh
[email protected]:~/Documents# adb shell
[email protected]_maserati:/ $ su
[email protected]_maserati:/ # sh /sdcard/removecrap2.sh
It works great, thank you. Good work.
Sent from my DROID4 using xda app-developers app
Hi to all, i found two app : ModemPanicReporter.apk and ModemStatsService.apk. What they are doing ? Maybe it is necessary to remove they too ? Removing these applications will improve battery life.
Sent from my DROID4 using xda app-developers app
Bought KF2 today, rom updated to 10.2.1. Rooted using the automated rooting tool found on this forum with adb and other required pieces installed.
Have superuser installed, have root explorer and ES file explorer installed.
I installed google services framework apk
i installed market apk which works until you attempt to download anything, then it crashes.i could not get it to set to rw/r/r its set to rw/rw/r
I downloaded google play apk but it crashes every time i try to open it. same security set as above
Would love some help in getting this to work.
since rooted facebook keeps crashing but tweetcaster has been rock solid.
Did you installed GoogleLoginservie.Apk?
Sent from my KFTT using xda premium
techknowgn said:
Bought KF2 today, rom updated to 10.2.1. Rooted using the automated rooting tool found on this forum with adb and other required pieces installed.
Have superuser installed, have root explorer and ES file explorer installed.
I installed google services framework apk
i installed market apk which works until you attempt to download anything, then it crashes.i could not get it to set to rw/r/r its set to rw/rw/r
I downloaded google play apk but it crashes every time i try to open it. same security set as above
Would love some help in getting this to work.
since rooted facebook keeps crashing but tweetcaster has been rock solid.
Click to expand...
Click to collapse
You have to get the permissions set to rw-r--r--. That could be causing your problem. to set the permissions in root explorer just long press on the apk and you should see an option for permissions. Then reboot
no matter what rom I use, on any phone. I always chmod 777 all of the modified apks and it seems to work.
Currently waiting on my kf2 to get here. so no help on specifics. sorry.
hmmmmm
onemeila said:
You have to get the permissions set to rw-r--r--. That could be causing your problem. to set the permissions in root explorer just long press on the apk and you should see an option for permissions. Then reboot
Click to expand...
Click to collapse
I'm by no means an expert but on every unix like system I've ever worked with giving more permissions than needed did not compromise the ability of programs to run or the user to do stuff that was needed. It did however compromise the security of the system .... so for what it's worth I don't believe your issue is due to the permissions you set and would look elsewhere first.
---------- Post added at 03:19 PM ---------- Previous post was at 03:06 PM ----------
fmkilo said:
no matter what rom I use, on any phone. I always chmod 777 all of the modified apks and it seems to work.
Currently waiting on my kf2 to get here. so no help on specifics. sorry.
Click to expand...
Click to collapse
If you are using the tablet as a stand alone device, i.e. not networked, and you don't ever take it out of the house; not an issue. However, part of the reason these permission are there and not everything has read, write and execute privileges (777 = rwxrwxrwx) is security. Thus setting everything to 777 is a security risk and potentially leaves gaping security holes which could be used to gain access to your device. Thus I would classify this as a BAD IDEA if you keep any data of value on your device and are worried about having it exposed.
rbto said:
I'm by no means an expert but on every unix like system I've ever worked with giving more permissions than needed did not compromise the ability of programs to run or the user to do stuff that was needed. It did however compromise the security of the system .... so for what it's worth I don't believe your issue is due to the permissions you set and would look elsewhere first.
---------- Post added at 03:19 PM ---------- Previous post was at 03:06 PM ----------
If you are using the tablet as a stand alone device, i.e. not networked, and you don't ever take it out of the house; not an issue. However, part of the reason these permission are there and not everything has read, write and execute privileges (777 = rwxrwxrwx) is security. Thus setting everything to 777 is a security risk and potentially leaves gaping security holes which could be used to gain access to your device. Thus I would classify this as a BAD IDEA if you keep any data of value on your device and are worried about having it exposed.
Click to expand...
Click to collapse
I agree. At google play there's plenty of malware. I think you should play it safe
Enviado desde mi LG-P990 usando Tapatalk 2
I am having the exact same problem as original poster. I have tried everything from resetting to factory settings and rerooting to trying different versions of google play/market
GoogleLoginservie.Apk fails and wont install
I had it working before the kindle updated and undid my root the other day. This was the only post I could find of someone having the exact problem I am having with the KF2. Is this some kind of hidden amazon security feature to keep us from using google? I am at my wits end on this one. =/
MAKE SURE TO MAKE A BACKUP OF INTERNAL STORAGE BEFORE YOU TRY THIS. IT WORKED FOR ME, BUT YOUR RESULTS MAY VARY!
I did not make this file, it was made for the Note 2, unfortunately I can't find the original thread for it. I had assumed it would not work for us, because the Note 2 had an actual SD card slot, and our phone does not. Anyway, I just tried it and sure enough, it does work perfectly.
If you decide you want to flash back to a 4.1.2 Sense rom from a 4.2.2 AOSP rom go ahead and wipe your phone like you normally would, flash the rom of your choosing, and then flash this file before you reboot. Only thing you'll have left after you reboot the phone, is the "0" folder. But it's empty since it moved all your files back to where they should be. Make sure you delete that "0" folder after the reboot. When I rebooted to TWRP after setting up, it appeared I had nothing on internal storage because it was still reading the "0" folder.
I'm very happy that this file actually works so now I can play with all the roms I want without the headache.
Me or the original creator of this file are not responsible for what you chose to do with your phone! That said it worked for me, and it SHOULD work for you.
Thanks for sharing.
Thanks for taking the leap and trying this out and then sharing.
Sent from my HTCONE using Tapatalk 2
Added this to my FAQ Guide Q14
Worked like a charm. Thanks! :good:
Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.
Tried it from the q/a thread. Works great dude, thanks a lot.
Awesome! Will try this today, thanks for sharing.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
Thanks for this. May push me over the edge to try some AOSP.
Sent from my rooted HTC One...
Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2
I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta
Killer-B said:
Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2
Click to expand...
Click to collapse
wfee said:
I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
mrrogers1 said:
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.
ericwgarza1 said:
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.
Click to expand...
Click to collapse
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta
thatotherguy.. said:
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w
ericwgarza1 said:
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w
Click to expand...
Click to collapse
I can confirm it's working
Sent from my HTCONE using Tapatalk 4 Beta
I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app
erikivy said:
Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.
Click to expand...
Click to collapse
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
james33440 said:
I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
install esfileexplorer and delete the 0 folder in sdcard directory.
Digitalkarma said:
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
install esfileexplorer and delete the 0 folder in sdcard directory.
Click to expand...
Click to collapse
I don't see that directory at all. However, once I make a backup it is created still.
Sent from my HTCONE using xda app-developers app
thanks I needed that!