[REQUEST] Make apk with script - Xperia Arc Themes and Apps

I am a not developer and dont know how to create apk, so i have a request to any developer.
Can make apk with script file, i have ready script file to push in apk
simple apk with one button to run script and progress bar.
SU permission required too.
for future updating of the script that could be replaced only into a script file in the apk
If you can make that simple apk tell me, then i publish the script. Thanx

Can't you just use script manager?
Sent from my LT15a using XDA

yes i can but first must install script with update.zip
next run script with terminal or script manager or adb shell from PC
Apk is universal and simply way to use, and dont require install update.zip before (i think so)
so meybe any dev help me?

What exactly are you looking for? A apk that runs scripts you give to it or just a apk that runs the script your talking about?
If it's just an apk that runs several scripts, the method to get them onto your phone will be the same I.e. You will still need the update.zip or adb push.
If it's just for one script it only takes a few lines of code, take a look on the portal one of the devs published a video on how to create a root app.
Sent from my LT18i using XDA

ok so i add script to attachment
Script make nandroid backup CMW
example of another application:
this is content of example apk
{
"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"
}
i need to put script file in apk archive, example (or another folder in apk)
for future simple edit script without recompiling apk.
but i dont know how to compile this apk.

I'm still struggling with what exactly it is your looking for, if you code an apk yourself theirs more chances of bugs rather then say using a terminal emulator from a developer with a lot of experience. As for the progress bar, you would have to modify the script itself to report the current progress. Unless you want to get into dev then I would suggest you stick with terminal.
Else check this video from Adam, it gives you the basics and he also includes a link to his open source "shell" class.
http://www.xda-developers.com/android/how-to-build-an-android-app-part-2-writing-a-root-app-xda-tv/
The basics would be to get that app up and running yourself, make sure that it runs commands you give it. Then just have your script somewhere like "/sdcard/script.txt" and pass the parameters something like "su -c", "sh /sdcard/script.txt". That way you could always update /sdcard/script.txt and then just run your application.

It's easy to run scripts from in an app. But you need to code it not edit an excisting app
Are you wanting an app to automate cwm backups? ( my cwm autoinstaller does this )
I don't understand what you are after either lol.
Pvy
Sent from my TEAM Powered Arc S

Related

Netcat through Terminal

Installing NMAP to run via Terminal
Let me start now by saying, if you dont know what Netcat is, you shouldn't bother going any further. If you do, then I hold no liability on how you use the following information.
Netcat has been said to be the "Swiss Army Knife" of networking tools. Ergo, as a network/tech, I have used this Program for a long time.
You can read up on Netcat and research this tool before use at its home page @
http://netcat.sourceforge.net/
If you need to root your device, please visit http://nookdevs.com/NookColor_Rooting for the walk through process.
Following that you will want to install Superuser and su by following the steps found at http://nookdevs.com/NookColor_Instal..._Superuser_app
You can download the file as well on your own from
http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.gz/download
However, I have taken the time to unpackage the Tarbal and GZ to make it easier for this process.
Netcat files: http://www.megaupload.com/?d=S4K9QC60
First thing is of course unzip the folder. This install, compared to my last post regarding NMAP, will be slightly different. Once unzipped, there will be the primary folder holding all the files. Open your CMD/term, and run the ADB push command. For example, if the file is on my desktop, i will run
Code:
adb shell
mount -o remount,rw /dev/block/mmcblk0p5 /system
exit
adb push C:\Users\User\Desktop\netcat\netcat /system/bin
This will copy all the files within the netcat folder.
Old netcat users who used it when the syntax started with the command "netcat" will notice a difference in this revision. Now to run the commands, you simply use "nc".
To access the man page, type in nc -h and hit enter. If you installed the files correctly, you will get the following results.
{
"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"
}
~Exile~
"When All Else Fails, Try Linux"
Hi, can you please specify the steps you followed to compile it?
Thanks
Venator85 said:
Hi, can you please specify the steps you followed to compile it?
Thanks
Click to expand...
Click to collapse
I still don't see the point of netcat on a tablet... I guess people use netcat for random weird things.
question
Hey I have been missing with around with terminal and all that on my ipod. I installed netcat and I looked around and saw that it could be used like a chat, but whenever I tried the code that they used it did not work for me. Can you help me? What am i suppose to use for the code?
NetCat for app invertor
Hello
I just saw this tread and was thinking that the app inventor community ( including me ) has been looking for a TCP/UDP API ti send and receive data via tcp and udp is there a way to interface Netcat via appinventor so we can communicate with Ethernet enabled devices using this tool.
Thanks in advance
Hello...the download link is not working ..I love your project and I need that urgent....please upload the file or send it to my email: [email protected] if u have ndk stand alone tool plz can u give me...I don't have much money and data in my area to download ndk...plz

[Q] How to make update.zips for CWM for mini pro?

Hey guys,
I really want to make a theme for slades rom but i just dont get how to make a flashable update.zip. Additionaly the new CWM requires edify-scripting -.- and here my update-zip-packager doesn't work anymore..for xrecovery it was just awesome..i already tried some amend2edify-converter, but that did not work either
So my question is, how can i make (or edit) an update.zip which can be flashed with the new CWM 3?
Thanks in advance,
nitro
i faced a similar situation today itslelf..n was ultimately forced to download the cwm version of slade's rom v5..
well if u just want to edit and replace apps n stuff, that can just b done in the sam way as any xrecovery rom...i used winrar to add n remove stuff from the rom n it works gr8
okay, thats an idea..but i want to make a theme..which means a flashable update.zip-file..does somebody know with what programm i can make such update.zips?
@ slade: how do you create your update.zips, e.g. the hotfixes with some single files?
Why don't you take a CWM package an unpack it via winrar/any other software? I'm quite sure there is an absolutely common folder structure following more or less the system folder structure and maybe there is one or there are more XML files in order to change some things in source files (e.g. change values in those *.hw files or whatever they are called) and to tell CWM what to do exactly.
As soon as you're done you simply zip it again (watch the folder structure).
***EDIT***
Ok, forget what I just posted. Had a look at one of slades zips and it's a little bit more than just an XML. Might not be smart to change stuff within that META-INF folder without knowing what you do.
{
"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"
}
http://dl.dropbox.com/u/10158456/aZuZu%20Small%20Tools%204%20SE/SCRIPT%20CONVERTER/aSC.zip
load amend script, correct converted script if needed.. and click convert & save

[Q] Rebloat?

I'm running rooted NT (Indirect's method) and originally I did the extreme debloat. I want to try out a few of the BN apps - is it possible to "rebloat" by using the ADB Hijack tool followed by rerunning Indirect's script? Would this reinstall the missing apps? Or do I have to totally restore back to 1.40, rerun the script and choose not to debloat?
Just give me few minutes ill upload the System/app folder of the stock 1.4.0 so you can use adb tools with adb hijack together to push the missing applications (bloat) you want. Until then read this so you get familiarized with adb:
http://forum.xda-developers.com/showpost.php?p=20774764&postcount=2
OR
@Loglud: Most easiest way is to take the apps you want and copy them over to a SD card. Then using root explorer or equivilant, navigate to /system/app and press mount as R/W and then copy all of the apps you want into that folder.
Edit: Alright so since you picked option 5:
echo Please select 5 to run the EXTREME debloater (Does all of the above and
echo removes ALL barnes and noble apps from your device
echo so you lose ALL functionality towards B and N but
echo you have a normal android tablet
echo DO NOT ASK FOR SUPPORT WITH THIS OPTION, you will be ignored.)
Click to expand...
Click to collapse
This is the list of the applications that were removed in the EXTREME debloater:
{
"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"
}
... so those are the ones that you may want to install back.
Package: Nook 1.4.0 system apps
Veronica
lavero.burgos said:
Just give me few minutes ill upload the System/app folder of the stock 1.4.0 so you can use adb tools with adb hijack together to push the missing applications (bloat) you want. Until then read this so you get familiarized with adb:
http://forum.xda-developers.com/showpost.php?p=20774764&postcount=2
Edit: Alright so since you picked option 5:
This is the list of the applications that were removed in the EXTREME debloater:
... so those are the ones that you may want to install back.
Package: Nook 1.4.0 system apps
Veronica
Click to expand...
Click to collapse
Great post and great awnser. Most easiest way is to take the apps you want and copy them over to a SD card. Then using root explorer or equivilant, navigate to /system/app and press mount as R/W and then copy all of the apps you want into that folder.
Sent from my Galaxy Nexus using xda premium
Thanks to you both..
For the advice. Yes, I'm certainly familiar with ADB but I normally use Root Explorer to load up system/app. What I am actually trying to do is get the "reading icon" to work on a rooted NT. And use a few other aps besides.
Veronica - thanks especially for the zipped apps.

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
2)Click on "autoapktoolmain.bat", prompt will open
{
"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"
}
3)put the apk you want to EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved for tutorial on editing, decompiling/recompiling .jar files :thumbup:
For video tutorial!:thumbup:
FAQ's​Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail

[GUIDE] Export Your Kernel Adiutor Settings to init.d Script

Hi, there.
The reason I make this thread is just want to share some tips to export your Kernel Adiutor profile settings to make it as a script running via init.d on your device and also as a backup for reasons. Since I'm having some trouble with Kernel Adiutor such as fail to apply on boot on restart, reseting all of my tweaks for no reason after restart, switching from different ROMs, etc. that really grind my gears.
NOTE : I prefer doing this work on PC and using Notepad++ or other text editor since its more easier.
1. Make sure your device is already have working init.d
2. Open your Kernel Adiutor, make some tweaks and save it as a profile in Hamburger Menu - Profile
3. Go to /data/data/com.grarak.kerneladiutor/files/ and copy profiles.json to somewhere else
4. Open profiles.json in Text Editor and copy all of its contents to clipboard
5. Go to https://www.browserling.com/tools/json-to-text to convert .json to txt, just paste it on the text box provided and click convert!.
6. Copy the text inside the text box and create a new files, paste onto it.
7. From this point we will edit the lines and remove unused lines so pay attention to avoid deleting the useful one
8. As you can see there are lines begins with "command" and "path", delete all the lines that start with the "path".
9. After you done with that, next is ONLY delete the words "command" from all lines. you will see fewer lines of codes after all this step. Then don't forget to save it as file without extension ex. : 69mykernelsettings
10. If you want to make sure you did copy the correct code, just do quick cross-check from Kernel Adiutor - Profile and see Information and compare it to the profile you use with the file we just made.
11. Last step copy your file to /etc/init.d/ , dont forget to give it permissions rwxr-xr-x (0755) or it wont executed on boot.
Here are some screenshot example from my profile :
{
"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"
}
Maybe this method is so convensional and too much hassle but it works for me and if you have a better method feel free to share in this thread and give some feedback
Very helpful bro, thanks
Gonna do this
arundhiman said:
Very helpful bro, thanks
Gonna do this
Click to expand...
Click to collapse
but that didnt worked for me , i m using android q and there is just "init" folder not that init.d
Looking for a another simple method now
In android q and above service.d folder works as init.d, you could found that folder in adb magisk

Categories

Resources