yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] Viper The Ripper:
...is the file browser which fc? or which app?

If the app that you are changing the permissions is running, It's normal that It fc, so you can go to settings > apps and force close manually it before change their permissions, It should work ;)

If you want to change permissions of apps as systemui, statusbar, phone, contacts, framework-res etc IT'S NORMAL THAT THEY FC BEACAUSE THEY ARE RUNNING CONSTANTLY, you'll need to do it via cwm :)
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] JarHeadP:
Its the file browser no matter which one i use!

Im following a guide on expanding my internal memory which is on android . net called 'How to Increase Internal Memory Galaxy Ace'

And ive got to the stage where you copy the int2ext file into the system folder and it says i have to change the permissions of the file which is where this problem happens, ive also tried changing the permissions before i move the file from my sd card to my phone but still no luck :(
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] Viper The Ripper:
To install int2ext try to use the cwm flashble zip ;)

http://xdaforums.com/showthread.php?t=1716124
[Galaxy Ace S5830 Q&A, Help & Troubleshooting] JarHeadP:
I actually found this last night and i managed to install it, formatted sd-ext but my internal memory still shows as 178mb :\

also with the miracle rom i keep getting force closes for google services it doesnt seem to crash anything but it just keeps popping up every once in a while.
[Galaxy Note GT-N7000 Android Development] Kamy:
Thanks majdini, I owe you a lot for sharing your android knowledge.

Edit: I got following error while trying to copy a file

Already installed ADB WiFi Widget and gave root permission to.

already connected to 192.168.1.102:5555

failed to copy 'G:\Kamran\Mobile stuff\App\DCikonZ_1.2.6.1.apk' to '/mnt/extSdCa
rd//DCikonZ_1.2.6.1.apk': Permission denied
already connected to 192.168.1.102:5555
[Galaxy Note GT-N7000 Android Development] majdinj:
OK,, for me I think it is mounting problem

in android device, open RootExplorer and navigate to '/mnt/extSdCard/ and mount it as R/W and try again (I think mostly this is your problem!)

if still you have the same problem, open my script and change the file destination to internal memory

adb push %1 /mnt/extSdCard/

change it to:

adb push %1 /sdcard/

and try again

tip: remember to use a static IP as per your connection, so you will not need to change IP every time
[Galaxy Note GT-N7000 Android Development] Kamy:
:good:

This did the trick to me, thanks again.
[Galaxy Note GT-N7000 Android Development] majdinj:
Nice... :good:

OK,,, let's try to force pushing to external sdcard, now try this one,,

in the script change this line again:

adb push %1 /mnt/extSdCard/

to:

adb push %1 /storage/extSdCard/

Why?

the first one is actually a symlink for the second one!!!
[Galaxy Note GT-N7000 Android Development] Kamy:
Nope! It didn't work again, though my external card is mounted r/w already.
[Galaxy Note GT-N7000 Android Development] ESTIMULO:
thanks for this script. For me it works fine with /storage/extSdCard/
[Galaxy Note GT-N7000 Android Development] majdinj:
It seems some extSdCard behave like that..!! try to unmount extSdCard then mount it again and try to push file into it..

if still,, then keep this code in the meantime till I figure out the solution of such extSdCard

adb push %1 /sdcard/
[Galaxy Note GT-N7000 Android Development] Kamy:
I can send only to internal memory. However I just noticed something; while I am transferring a file to internal card, in command prompt it says:

"Sent to exdSdCard", (I am using Philz kernel)
[Galaxy Note GT-N7000 Android Development] majdinj:
No this is actually an echo of my command,,, I will update OP for more clean script for both internal and external memory
[Galaxy Note GT-N7000 Android Development] majdinj:
OP updated to include separated script for internal and external sdcard
[Galaxy Note GT-N7000 Android Development] hara74:
for internal works fine,

but still "permission denied" for external :confused:

sent from my G-Note
[Galaxy Note GT-N7000 Android Development] Kamy:
Although I couldn't manage to send my file to external card but no problem for me. I am pretty satisfied by this script, transfer rate is fast enough and very convenient. Thanks again majdini :good:
[Galaxy Note GT-N7000 Android Development] hara74:
yes for me too,

I flash always with beerbong's ZipInstaller and it works only from my internal sd,

so I'm happy with ur script :thumbup:

thanks a lot

sent from my G-Note
[Galaxy Note GT-N7000 Android Development] majdinj:
Thank you all for support,, I am digging on your issue regarding extSdCard,, it seems there are people who suffers from the same issue while other don't!!

I still believe it is adb mounting problem

plug your device to usb cable (usb debugging mode should be ticked before)

go to adb_send-to folder and on any empty place hold shift and click right mouse button --> open command window here, and type the following commands:

adb remount
adb root
adb shell "su" "" "mount -o remount,rw /storage/extSdCard"
adb remount
adb kill-server
adb kill-server

now try external sd script,, hopefully this will do it
[Galaxy Note GT-N7000 Android Development] hara74:
jup,

now it´s working :good:

but one question,

have I after every reboot of the pc to type these sentence again?

and could I switch to internal again by editing your command file again?
[Galaxy Note GT-N7000 Android Development] majdinj:
Good to hear that :o at last :p

You need to run those commands only if you got mounting problem.. So it is not a must in each reboot..

For switching between external and internal sdcard,, yup you can,, I will write a combined script to give you the authority to choose whether to send to external or internal sdcard,, of course I will include the commands above to ensure external sdcard mounting,,

Until then happy pushing.. mm I mean sending :laugh:
[Galaxy Note GT-N7000 Android Development] hara74:
yeah,

push it baby ;)

sounds great your idea with the combined script :good:

I´m really happy with that script, bcs everytime I changed a little thing in my themes, I had either copy over the file via cable, or search with a explorer like solid explorer or so,

now I can just right klick on the file and hop hop it´s on the right place on phone :laugh:
[Galaxy Note GT-N7000 Android Development] ardicli2000:
How can we fix Android Device IP?

So that I can use the script as it is all the time.

TIA
[Galaxy Note GT-N7000 Android Development] majdinj:
make IP settings static not DHCP

Go to your WiFi networks --> long press your current WiFi connection --> modify network config --> IP settings (static), now put a static IP address that resemble your router gateway except last digits and put your gateway.. see attachment pic as an example

by doing this you will not need to enter new IP address each time you want to connect over WiFi using this script
[Galaxy Note GT-N7000 Android Development] ardicli2000:
Thanks a lot. That's working great.

One more request :)

I would like to change the directory so as to find the files easily. I wanna dedicate one folder in internal storage. WHer is your script and how can i change the directory in it?

Thanks again.
[Galaxy Note GT-N7000 Android Development] asmanao:
thank you majdinj very useful .)
[Galaxy Note GT-N7000 Android Development] majdinj:
sure.. create a folder in sdcard let's say you created a folder in internal sdcard called MyStuffs

so just open the script and edit this line:

adb push %1 /sdcard/

to:

adb push %1 /sdcard/MyStuffs/

Thanks for testing..

The combined script will be available soon,, testing in the moment
[Galaxy Note GT-N7000 Android Development] ardicli2000:
Where is the script? :D
[Galaxy Note GT-N7000 Android Development] majdinj:
It is "My Android Device.cmd" edit it with notepad++
[Galaxy Note GT-N7000 Android Development] 4unwired:
Thanks. I had same issue as well - now resolved.

Brilliant
[Galaxy Note GT-N7000 Android Development] treacherous_hawk:
i am unable to do it, i keep getting "waiting for device to be online" and even if try to transfer something i get adb not recognised...
[Galaxy Note GT-N7000 Android Development] majdinj:
Have you paste SHORTCUT or normal paste of "My Android Device.cmd" in

%APPDATA%\Microsoft\Windows\SendTo

It should be shortcut
[Galaxy Note GT-N7000 Android Development] treacherous_hawk:
did that but still keeps saying waiting for device to be online while trying to send something.
[Galaxy Note GT-N7000 Android Development] majdinj:
waiting for device means your device is offline..

kill adb activity by going to adb_Send-to folder and on any empty place hold shift and click right mouse button --> open command window here, and type the following commands:

adb kill-server
adb kill-server

I have updated OP with combined script,, try it,, it could solve the problem

Combined Script (change-log):

- One script for both sending to internal or external memory.

- Added mounting commands to ensure successful sending to internal or external memory.

- Polished script to ensure not having inappropriate echo in error messages.

Of course the script can be polished more according to your feedback,,

Thank you all in advance for supporting and testing this script,,
[Galaxy Note GT-N7000 Android Development] treacherous_hawk:
this is what i get with new one.
[Galaxy Note GT-N7000 Android Development] Kamy:
Yeah it seems it's my adb mounting problem, I cannot run adb remount command, it says device not found (usb debugging is enabled and plugged and using combined script)
[Galaxy Note GT-N7000 Android Development] majdinj:
Ok,, can you run these commands:

adb shell
su

if no, then you have root problem

But if yes,, well it seems there is problem at your end, try to install android sdk and try again

Here is how it should be if everything is OK.
[Galaxy Note GT-N7000 Android Development] Kamy:
After trying to run following commands on terminal emulator on my phone (used rom toolbox), it is working now.

I also added a custom folder to both EXTERNAL and INTERNAL card and can transfer my files easily to my desired folder.:good:

adb remount
adb root
adb shell "su" "" "mount -o remount,rw /storage/extSdCard"
adb remount
adb kill-server
adb kill-server

Although I have installed android sdk, my computer cannot recognize my phone.
[Galaxy Note GT-N7000 Android Development] majdinj:
So it is working now !!??!! if so can you share how you did it, so all can get benefit

Edit:

ahh I see, you just run those commands on android terminal from the phone itself.. what a $it demanding android.. :mad:

So congrats m8 and welcome to senders group :laugh:
[Galaxy Note GT-N7000 Android Development] Kamy:
My computer doesn't recognize my phone for a strange reason(phone got root permission and sdk installed on my computer though)

So I tried to run following command on Terminal Emulator on my phone (I used rom toolbox lite for this purpose)

adb remount
adb root
adb shell "su" "" "mount -o remount,rw /storage/extSdCard"
adb remount
adb kill-server
adb kill-server

I setup a static IP address (stated here how to) and then tried the combined script, now I can send my files to internal or external card, I even created a folder on my card as stated here and the file would be sent directly to that folder (no need to address on command prompt) Tired several times and even rebooted my phone and yet not problem by transferring files to internal or external card.
[Galaxy Note GT-N7000 Android Development] majdinj:
Thanks kmokhtar79,,,

I am glad that you can use the script finally :good:

Any suggestion to improve is welcomed,,

I am majdinj and I approve this message :D

I am not copying RWJ you know.....................................................
[Galaxy Note GT-N7000 Android Development] hara74:
thanks you two ;)

the new combined script is working fine for me,

for both, internal and external :thumbup:

I like that we have the choice now :D

sent from my G-Note
[Galaxy Note GT-N7000 Android Development] majdinj:
Hey thank you for testing hara74 ;)
[Galaxy Note GT-N7000 Android Development] majdinj:
I have tested the mounting commands on android terminal (as kmokhtar79 did), and since adb commands are not runnable on terminal shell, the actual running commands on android terminal are:

cat /proc/mounts
su
mount -o remount,rw /storage/extSdCard
mount -o remount,rw /storage/sdcard0

So just to make it clear..
[Galaxy Note GT-N7000 Android Development] orangerot.:
Hello [MENTION=369057]majdinj[/MENTION] :)

I just saw your script and must say it's exactly what I need :D But unfortunatley it doesn't work for me.. Maybe you can help?

First of all I have to say my device is not a N7000 but a I9300 and I'm running Android 4.2.. I know about the new "security" stuff which is new in Android 4.2.. So I updated the adb files in the adb_Send-to directory to the latest. Also I accepted that pop-up on the phone and allowed my pc adb access^^ Root rights are also okay (typing adb shell, su lead to a su request on the device which I accepted and it worked fine).

Well now to the real problem^^

After setting up the static ip + enabling adb wifi using that linked widget(and of course everything else is set up like stated in the OP. Only I'm not sure what you mean with "open wifi port on device. So I didn't change anything to that!) I wanted to send a test file to my phone.

After doing that the cmd prompt opens and it tells:

*daemon not running. starting it now on port 5037*

*daemon started succesfully*

Then nothing happens for ~15 seconds. After the 15 seconds are gone the following appears:

not able to connect to 192.168.2.105:55555

error: device offline

Do you have any idea what I could do to solve the issue?

Thanks in advance :)
[Galaxy Note GT-N7000 Android Development] majdinj:
Although this new security feature is still hassle!! but this is the future and we have to accept it (I am talking like a philosopher.. lol :eek:)

Sorry for getting high,, bad me

Anyhow, what you need to do is:

1. Ensure that you have the latest adb engine installed from android sdk. Your adb version must be at least 1.0.31 (you can see the version using the command "adb version").

2. Set your device USB to debugging mode

3. Plugging deivce to usb cable, open the command prompt and enter the command

adb devices

a popup window will appear in your device and ask you to accept the connection (see attachment pic); check "always allow for this computer".

4. After accepting RSA fingerprint of your usb, you can now issue the command:

adb devices

and see the device is no longer offline.

Conclusion:

In android 4.2.2 with new security feature, to get adb-over-WiFi to work, first use adb-over-USB to the same given PC/Laptop and grant access with "always" box checked.
[Galaxy Note GT-N7000 Android Development] orangerot.:
First of all thanks for the answer :) I'm aware of that security stuff and as I mentioned already I've accepted the popup(with "always" checked)! Also the adb version is 1.0.31! If I connect the device via USB all is fine.. (adb devices gives me the id(or whatever it is^^) of my device)

Only if I'm using your script the device is offline :( Any Idea why?

What exactly do you mean with "open the port" ? Maybe here's the issue as I have no clue what you mean with that ^^
[Galaxy Note GT-N7000 Android Development] majdinj:
i.e open wifi connection and connect to your router

ok,, disconnect the WiFi connection, connect the usb cable and try to kill any adb activity with command "adb kill-server"

and restart the phone,,
[Galaxy Note GT-N7000 Android Development] orangerot.:
Okay the phone is connected to my router. My laptop is also connected to the same rooter ;)

I typed adb kill-server, adb reboot, adb kill-server... Now phone is up again and I started ADB WiFi.. Now it let me choose to which storage I want to send it.. But than again: device offline..

The seconds try to send the file lead to: connected to blabla but then again "device offline".. :( Any other suggestions?
[Galaxy Note GT-N7000 Android Development] majdinj:
Try to remove any remnant of any old adb and use the latest one. Also try to disable debugging then re-enable it. Then kill any adb activity by " adb kill-server", connect the usb and check adb version, then try over WiFi
[Galaxy Note GT-N7000 Android Development] orangerot.:
Didn't help anything.. I'll download the sdk now again and install it fresh.. Maybe this will do it.:confused:
[Galaxy Note GT-N7000 Android Development] majdinj:
Also don't forget to remove adb over the system variables PATH if you install it there before, or in systrm32 folder if you are running x86 Windows version. Then install the latest sdk.
[Galaxy Note GT-N7000 Android Development] orangerot.:
I'm getting really clueless.. I just made a complete clean install of adb and added it to the PATH.. While it works fine via USB there's still the "device offline" message while trying it over WiFi :(
[Galaxy Note GT-N7000 Android Development] majdinj:
Enable WiFi ADB and try to run

adb connect <ipadress>:5555

and see the response?

if still offline, try using another computer (connect your usb on it before to have the popup)
[Galaxy Note GT-N7000 Android Development] orangerot.:
Mhhm it says 'unable to connect to device' after running the command..

It's really really strange.. (also tried it with activated patch of the adbd insecure app from chainfire)

I'll try another pc tomorrow. Thanks for your help :)

Sent from my Nightmare featured GT-I9300
[Galaxy Note GT-N7000 Android Development] majdinj:
so it must be adb or end machine problem..

Yes try another computer..

Searching xda for the problem may help since it is common,,

Have a good night
[Galaxy Note GT-N7000 Android Development] orangerot.:
Thanks, I'll do!

Have a good night too :)

Sent from my Nightmare featured GT-I9300
[Galaxy Note GT-N7000 Android Development] majdinj:
New version 1.1 is online, check OP

Change-log:

v1.1 combined script:

- The latest adb engine extracted from android SDK (date 20130729).

- Decrease timeout to exit to 2 seconds after successful sending.

- Increase timeout to exit to 8 seconds after having error for easy reading error debugging.

- Silent daemon connection.

- Added new script lines to get connected device id brand and model.
[Galaxy Note GT-N7000 Android Development] Bimalhort:
I cannot send files

The following errors occur

Please help
[Verizon Samsung Galaxy S III] razz1:
7. PUT THE PIECES TOGETHER

Ok so we have our base rom running on our phone and possibly a few mods installed. We also have our extracted and debloated "slick" rom on the EXT-sdcard inside our project folder. The next part is rather easy if you understand how those flashable mods were installed. If you understand the whole flashable and its files, your better off just extracting them and then copy and paste them where they need to go. After you have all your mod files in place you can now zip your official "Slick" rom using Root Explorer of course. Prepare yourself for another 30 minutes for it to zip. After it's zipped your done. You have now created your first fully modded rom! However...

Lets say you don't get the whole flashable thing and or you had made some other changes to the rom while you were testing. Lets say you flashed some mods and created a few init.d scripts or the build.prop along the way. NO WORRIES! We can put the rom together another way. A lot of the mods you flash will install files in some usual areas of the rom like your Framework folder and such. Lets just say we don't know though. You can actually copy complete folders from the rom you are running right there and now and paste them into your extracted "Slick" base rom using Root Explorer. So you can take "/system/framework" from your currently running rom, copy it, and paste it in "/storage/EXT-sdcard/project folder/slick/system/framework". In short just take your copy of the framework file and put it in your extracted base and paste it. Root Explorer will then ask you if you want to replace this file and click yes. You have just transferred any modded file that might have been in framework to your extracted rom. Any folder you may think was modded, simply copy and paste it to your extracted base rom on your EXT-sdcard. Once you think you have it all the modded files transferred you can zip your new "Slick rom! Flash and enjoy!!
[Verizon Samsung Galaxy S III] razz1:
FINISHED

So we have now completed our own rom on the device itself. It's really not too difficult just a bit more time consuming with zipping and that. However, you may need to do a bit more research on how to decompile and recompile an APK. This is one of things that can really be a pain to setup. It's again the basics that will kill you. The whole PITA is not decompiling or making changes to a framework file, it's setting up the environment that sucked for me. You have to get the Java and files in order and all the little crap to get it to work. IMO, if you haven't decompiled an APK yet it's really not difficult at all. Like I said. It's the basics. I encourage you to learn this because it's so freakin easy after it's all setup and you will be able to do so much more with your rom. Once you get this APK thing down don't be afraid to take someone elses work and reverse engineer it. Try to figure out what that developer did to accomplish what he wanted. It's a great way to learn and thats what it's about.

I may add to this somewhere down the road but for now it's all I have. I hope this helped and motivated someone to create a rom and begin there journey to become developer someday! We can all use fresh ideas for development. There is so much more to come for Android so get your hands dirty and share!:p

Thanks guys!
[Verizon Samsung Galaxy S III] dincdoes.me:
Ha never really thought of doing this on the fly with my phone. Even though all the right stuff was sitting in my face thanks for opening my eyes razz1
[Verizon Samsung Galaxy S III] razz1:
It's another way. May not be the fastest way but it's another option. I also wanted to write this as a general rom creation and learning some basics. It's always the basics that will kill a project and motivation. I would like to see a complete newb to be able to complete a rom with this tutorial. Then I accomplished something. Going to have to finish this tomorrow though. It's taking longer than I thought lol.:)
[Verizon Samsung Galaxy S III] dincdoes.me:
Yea I mean I'm a newb at doing it from my phone if that counts =) .. What explorer do you like to use to repack the zips. I'm sure I'll try this method soon to play while bored at work. Rom tool box will help with boot animations, fonts and transition animations too take care thanks for giving our community some new skills I'm sure it will help out down the road.
[Verizon Samsung Galaxy S III] Lehocki:
Thank you for this post. This will definitely get me to try and make my own ROM the way I like, also I might just learn some new stuff. Great post thanks again
[Verizon Samsung Galaxy S III] andybones:
Nice tutorial.

It's a great way to show what can be done just from your phone.:cool:

:good:
[Verizon Samsung Galaxy S III] trook:
Right on man. Been waiting for this. Thank you.
[Verizon Samsung Galaxy S III] trook:
I use androzip man.
[Verizon Samsung Galaxy S III] razz1:
More added
[Verizon Samsung Galaxy S III] Evil Genius Jr.:
So would I make, say ROM manager a system app? Just copy the apk into the /System/App folder?
[Verizon Samsung Galaxy S III] razz1:
Yes, but not all apps you download from google play work in /system/app. Some want to be installed into /data/app. However /data/app doesn't exist till after the rom is booted. You would need to add the folder to your extracted rom and modify the updater script.
[Verizon Samsung Galaxy S III] trook:
You are the fu**ing man razz1.
[Verizon Samsung Galaxy S III] razz1:
That's about all I have for now. OP completed!:sly: