APKInstaller- V 1.10 NOW INCLUDES BATCH! - G1 Apps and Games

APK/BATCHInstaller
By Spyrorocks​
{
"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"
}
First off this application only works on Windows XP [EDIT-Confirmed working on VISTA] and it designed to make your life easier!
Once installed, the Application will auto install .APK and batch files to your phone after a simple double click of the file.
It save you the hassle of having to to drag and drop files to your phone then having to run the appinstaller on your phone!
INSTALLATION
1.)Read the Readme included
2.)Run the file named "install.bat" to install program
3.)Once installed, Plug your phone into the computer
4.)Double click the .apk or batch file of your choice to install it on your phone, there is one included.
5.)Follow on screen instructions to install
SCREEN SHOTS
UPDATES
V. 1.1
Added:
*Supports Batch APK Installing
*Shows APK icons
To do:
*User friendly installer
*Fix Icon doesn't show rarely (doesn't effect program operation)
V. 1.01
Added:
*New confirmation screen for installing APKs
*Shows you the permissions the apk needs before installing
*auto-remounts adb before detecting
To do:
*Add batch install
*Fix small bug where permissions are sometimes not displayed (rare)
Newest Version
V. 1.10
Download APKInstallerv1.1.zip [
]
Old Versions
V. 1.01
Download APKInstaller1.01.zip [Downloads:
]
V. 1.00
http://www.mediafire.com/?j2mumryzkld
BUGS
* The about screen forgot to mention Gotwake424, even tho he didn't do anything
THANKS FOR TESTING
Spyrorocks - Programmer
gotwake424 - In It To Win It

FYI no one will send pm if they don't know what it is... Why not say what it is first then give us the choice to pm you or not ?

There you go

APKInstaller
Worked like a charm! If there was a way to do batch installs (possibly uninstalls?)(still Beta) WOW!!!

I can confirm working on vista. I had to remount via adb before the app would detect my phone, but after that, worked fine.

Apaca1ypse said:
Worked like a charm! If there was a way to do batch installs (possibly uninstalls?)(still Beta) WOW!!!
Click to expand...
Click to collapse
We will see what we can do, thanks for the suggestion

Thanks Apaca1ypse and ThrashWolf for trying it out.
Ill see what can be implanted in the next version, including a batch installer.
I just added the ability for it to automatically remount before installing, as per ThrashWolf experiences.

NEW VERSION RELEASED
Download APKInstaller1.01.zip [Downloads:
]
Added:
*New confirmation screen for installing APKs
*Shows you the permissions the apk needs before installing
*auto-remounts adb before detecting
To do:
*Add batch install
*Fix small bug where permissions are sometimes not displayed (rare)
Screenshots:

I cant even get it installed correctly :-/
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
Access is denied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
=================================================
APKInstaller has been installed.
Press any key to continue . . .
Im on vista

.PaNiNi., Please right click the install.bat file, and choose to run it with administrator privileges. That should allow it to copy the files in the correct place (%Programfiles%)

Spyrorocks said:
.PaNiNi., Please right click the install.bat file, and choose to run it with administrator privileges. That should allow it to copy the files in the correct place (%Programfiles%)
Click to expand...
Click to collapse
This is what i get when i try to install in indos 7 after running as admin
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
APKInstaller has been installed.
Press any key to continue . . .
Click to expand...
Click to collapse

Thanks for the info, ill update the post

Im using Windows 7 RC(Build 7100) and it just installed & worked perfectly

No Thanks Needed!
Spyrorocks said:
Thanks Apaca1ypse and ThrashWolf for trying it out.
Ill see what can be implanted in the next version, including a batch installer.
I just added the ability for it to automatically remount before installing, as per ThrashWolf experiences.
Click to expand...
Click to collapse
To improve the Android experience... Anytime! One thing, though, in V 1.01, I don't see the permissions screen. No biggie, just thought you should know. Windows XP (x86)

running as admin
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
APKInstaller has been installed.
Press any key to continue . . .

.PaNiNi. said:
running as admin
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
[B]APKInstaller has been installed.
Press any key to continue [/B]. . .
Click to expand...
Click to collapse
Did you try to use it to install a apk? cause it says it installed

.PaNiNi., Did you extract the ZIP or are you running the install.bat file from inside the zip? You need to extract the zip file so it can access the other resources.
Apaca1ypse said:
To improve the Android experience... Anytime! One thing, though, in V 1.01, I don't see the permissions screen. No biggie, just thought you should know. Windows XP (x86)
Click to expand...
Click to collapse
Can you take a screenshot of what the permissions screen looks like to you? Or does it not show up at all? Do you get the screen with the Android holding a little arrow pointing down icon (Like the screenshots above)?

Windows 7 64Bit
Installed as admin
Program works great!
Get batch working and donation coming your way!

LinkinX said:
Windows 7 64Bit
Installed as admin
Program works great!
Get batch working and donation coming your way!
Click to expand...
Click to collapse
Thanks for the complement!
V. 1.02 should be out soon!

NEW Version v1.1
Added:
*Supports Batch APK Installing
*Shows APK icons
To do:
*User friendly installer
*Fix Icon doesn't show rarely (doesn't effect program operation)
Download APKInstallerv1.1.zip [
]

Related

Where is the Hosts File in Android?

In my country some sites have been banned but most of us keep using them in pc's by changing hosts file in \Windows\System32\drivers\etc
adding ip strings like
207.200.100.5 shoutcast.com
207.200.100.5 www.shoutcast.com
I just wonder if there is someway to do this in android? If the answer is yes then my new question is "how"...
Thx for the answers...
/etc/hosts
rub1k said:
/etc/hosts
Click to expand...
Click to collapse
Thx. I reached the file by a file manager app. but i cant open it with notepad apps. Do I need the root privilage?
yes. Just ADB pull it.
Technically it's in /system/etc/hosts, /etc is a symlink.
If you want to edit it, create a hosts file on your SD card and then cp from terminal with root privileges. Or you could adb push it from your computer.
thx a lot for the answers. ill try it.
question
hello there,
i'm a newbie and i don't know anything about programming. and i need a step by step guide to edit the host file. i have reached the file with file manager but i can't edit or replace it.
thanks.
Should just be a matter of
adb pull /etc/hosts
Which will copy the file to the current directory, then make the necessary changes, then
adb remount
adb push hosts /etc/hosts
Anyone correct me if I'm wrong. If you don't have ADB set up, now would be a good time to do so; searching for "ADB for dummies" should help you with that.
I suggest nano if you have a ROM with this included (such as cyanogenmod). Then all you need to do is open the terminal and enter
Code:
su
nano /system/etc/hosts
In this manner, one can do the edits straight from the phone terminal.
Or download estrongs file manager, go to settings and set file system to "read write"(its in something like root settings or so). after that you can edit the file
cloverdale said:
I suggest nano if you have a ROM with this included (such as cyanogenmod). Then all you need to do is open the terminal and enter
Code:
su
nano /system/etc/hosts
In this manner, one can do the edits straight from the phone terminal.
Click to expand...
Click to collapse
This guy knows his hosts. I have his file on my desktop and I push it into every rom I use.
If i put in hosts like one from google for example, and some regular news sites i use, would this speed up my internet?
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
I do believe in Linux systems, the real hosts file is in root/data/data/
>The system/etc/ hosts file is empty, aka a decoy of some sorts....?
To view it, u may need "rootexplorer.apk" (as opposed to droidexplorer.exe, a windows vista program), as I couldn't get Astro to require SU
(Need to check this out, my own system may be different?)
RedWave31 said:
I do believe in Linux systems, the real hosts file is in root/data/data/
>The system/etc/ hosts file is empty, aka a decoy of some sorts....?
To view it, u may need "rootexplorer.apk" (as opposed to droidexplorer.exe, a windows vista program), as I couldn't get Astro to require SU
(Need to check this out, my own system may be different?)
Click to expand...
Click to collapse
If it is empty, it just means there aren't any hosts in it. /etc/hosts is the correct file.
DiskCrasher said:
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
Click to expand...
Click to collapse
What exactly is the process you are using? Does it look like this?
{
"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"
}
And when you pushed the hosts to your phone, what command did you use?
DiskCrasher said:
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
Click to expand...
Click to collapse
Where did you get the file from, a windows pc?
In this case you need to convert the end-of-line characters
from Dos to Unix ones. This could be done with nano editor
or with busybox's dos2unix command.
you should try to open it with the "text editor" in "ASTRO"..
farmatito said:
Where did you get the file from, a windows pc?
In this case you need to convert the end-of-line characters
from Dos to Unix ones. This could be done with nano editor
or with busybox's dos2unix command.
Click to expand...
Click to collapse
That was it! I opened the hosts file in Notepad++ and converted it to UNIX format, then saved it back to my phone. Now blocked addresses are resolving to 127.0.0.1 as expected. No more ads or malware, yay!
Converting hosts file to unix format is worked for me also ,i converted hosts file with notepad++ to unix format(edit>eol conversation>unix format) then copy it in etc ,overwrite(backup ojinal host file to sdcard first with copy command) ,no need to reboot phone
can't pull
Hi
I'm trying to pull the hosts file with adb or with android commander. the adb sais there isn't a file like that and the AC give me this when I try to copy:
Items count: 1
Items source: /system/etc/
Items destination: C:\android-sdk-windows\
Starting operation...
Coping file: [email protected]
remote object '/system/etc/[email protected]' does not exist
*** Operation complete! ***
What can I do?
thanks

Bulk Install

I did some searching but didn't find anything.
Is there a way to bulk install applications if you have all the apks for those applications?
Mr17 said:
I did some searching but didn't find anything.
Is there a way to bulk install applications if you have all the apks for those applications?
Click to expand...
Click to collapse
Emm haven't tried it but it should work.
You could use wildcards.
So let's say you have a bunch of .apk's all in one folder, you could use adb to install them on your phone using this syntax:
Code:
adb install folder/*.apk
This should install all files ending with .apk in the folder
sweet, I'll give that a try and let you know how it works. Would make testing different roms alot easier.
Do you think this would bypass the market? If it did notification of updates would not work. hmm, ill have to test.
Mr17 said:
Do you think this would bypass the market? If it did notification of updates would not work. hmm, ill have to test.
Click to expand...
Click to collapse
use atrackdog
Create a batch script with:
Code:
for %%f in ("C:\path\to\apks\*.apk") do adb install "%%f"
The easiest way (imo) if you are rooted:
1. Put all the apks into a folder structure \data\app
2. Create a text file with the following and rename it update-script (with no extension) then put it into a folder structure \META-INF\com\google\android
Code:
show_progress 0.5 0
copy_dir PACKAGE:data DATA:
show_progress 0.5 10
3. Zip both folder structures into a zip file (you should have folders data and META-INF at the root of the zip).
4. Sign it with signapk and you're done
Whenever you want to bulk reinstall, just put the signed zip file into your sdcard and reboot into recovery. When you want to add or remove apks from the bulk installer, just drag it into your zip file and resign.
Or you can backup all your apps into one folder on your sdcard and run this in terminal:
Code:
su
cd sdcard/apps
busybox install *.apk /data/app
I might add this feature into my ADB File Explorer app
I've added a basic feature to install apps into my ADB file explorer, it can do one off apk's or bulk install from a directory. See my sig for more details.
wow, that was fast! thanks!
jashsu said:
The easiest way (imo) if you are rooted:
1. Put all the apks into a folder structure \data\app
2. Create a text file with the following and rename it update-script (with no extension) then put it into a folder structure \META-INF\com\google\android
Code:
show_progress 0.5 0
copy_dir PACKAGE:data DATA:
show_progress 0.5 10
3. Zip both folder structures into a zip file (you should have folders data and META-INF at the root of the zip).
4. Sign it with signapk and you're done
Whenever you want to bulk reinstall, just put the signed zip file into your sdcard and reboot into recovery. When you want to add or remove apks from the bulk installer, just drag it into your zip file and resign.
Click to expand...
Click to collapse
Thank you for this. This will come in handy a LOT next ROM flashes :]
Seems so easy looking back on it, not sure why I didn't think of it earlier. I may even just edit the rom files to include my installed apps if I need to wipe.
someone made an app for the computer if you have the .apks you just plug in your phone double click the apk and run it and itll install on to your phone, try looking for that.
Bavilo said:
Emm haven't tried it but it should work.
You could use wildcards.
So let's say you have a bunch of .apk's all in one folder, you could use adb to install them on your phone using this syntax:
Code:
adb install folder/*.apk
This should install all files ending with .apk in the folder
Click to expand...
Click to collapse
I just wiped my phone completely clean and reflashed to Cyanogen 3.6.1.
When I try this method, it gives me an error that I don't have enough space. Again, this is after a *complete* wipe.
Screenshots:
{
"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'm not sure whether it's using the 5 MB free or the 42 MB space, but Any Cut is 32 kb, so that's a non-issue.
Any ideas on why it's not working?
Paul22000 said:
I just wiped my phone completely clean and reflashed to Cyanogen 3.6.1.
When I try this method, it gives me an error that I don't have enough space. Again, this is after a *complete* wipe.
Screenshots:
-----
I'm not sure whether it's using the 5 MB free or the 42 MB space, but Any Cut is 32 kb, so that's a non-issue.
Any ideas on why it's not working?
Click to expand...
Click to collapse
Do you have your sdcard partitoned to fat32 as the first one and then ext2(3) as your next partition?
PlatinumMOTO said:
Do you have your sdcard partitoned to fat32 as the first one and then ext2(3) as your next partition?
Click to expand...
Click to collapse
I don't think so. If there is an ext2 or ext3 partition, I didn't set it up.
By the way, I got InstallAPK, which lets you double click on APKs on your PC and install them to phone immediately.
http://forum.xda-developers.com/showthread.php?t=521295
It worked just fine at installing all my apps after the wipe.
Minus the fact that I had to double click on an app, wait for it to install, double click the next, wait for it to install, double click.... ad nauseum.........
I'm still interested in finding out why the method I posted in the screenshots isn't working.
Has anyone actually gotten it to work?
We're getting off topic but this is what you need to do in all likelihood you're gonna have to reflash Cy 3.6.1 again but before you do you're gonna need to setup your sdcard like this:
you can use either Paragon Partition Manager (above) Gparted, or SDSplit but you should set it up like the picture to run apps to sd and to fully get the Cy experience
PlatinumMOTO said:
We're getting off topic but this is what you need to do in all likelihood you're gonna have to reflash Cy 3.6.1 again but before you do you're gonna need to setup your sdcard like this:
you can use either Paragon Partition Manager (above) Gparted, or SDSplit but you should set it up like the picture to run apps to sd and to fully get the Cy experience
Click to expand...
Click to collapse
I'm not trying to do apps to sd though.
All I want to do is run "adb install apk".
well how many apps are you trying to install?
PlatinumMOTO said:
well how many apps are you trying to install?
Click to expand...
Click to collapse
29 apps
Which is why I'd like to get a quick adb install *.apk, 1 command and done.

Changing battery meter?

ok so i like the android shaped battery meter thats in the froyo 2.2 cm6 extreme blue and vanilla rom,right, so my question is it possible to import that into the rom im running and change my regular battery to that one, is there a specific file i can swap
You have to pull your framework-res.apk file from your phone, extract the images from the original framework-res.apk (in this case the one in CM6 extreme), then add those files to your framework-res.apk and push it into the phone. It's 3:15 A.M. here and I'm not in conditions to explain that with detail, tomorrow if noone has explained it I'll tell you how to do it, you only need WinRAR or 7zip and the SDK to pull/push the modified file into your phone
well i do appreciate the lil bit of insight you provided me ill see if i can try to figure it out but i would like some help when you get a chance tomorrow if i cant figure it out
My girlfriend will kill me tonight...
Okay, excuse my bad english, I'll do what I can... Grab the ROM you want to take the battery icons from in the update.zip and download somewhere to your computer, then unzip it and in the folders you just have created navigate to /system/framework/
Here select the framework-res.apk file and open it with WinRAR (you can do that with 7zip I think but I use WinRAR), once opened navigate inside the zip to /res/drawable-mdpi/ folder and extract all the images there to a new empty folder.
Once extracted all the images, search for the images called
stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
...
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png
stat_sys_battery_unknown.png
There are 14 battery images in total, at least in my ROM. You can delete all the other images as they have nothing to do with battery status and it will be more easy to do the next step if you only have the battery images.
Connect your phone to your PC, boot your phone into recovery and select "USB-MS toggle". In your computer open a CMD (MS-Dos) prompt window, navigate to the 'tools' directory of your SDK folder (I recommend to unzip SDK in C:/AndroidSDK or something like that for easy access) and write
Code:
adb
adb pull /system/framework/framework-res.apk framework-res.apk
DON'T CLOSE THE CMD WINDOW, if you do, you will have to start ADB again for the "push" step.
That will take the framework-res.apk file from your phone and download it into your computer.
Next you have to do is to open the file you have pulled from your phone with WinRAR, navigate inside that file into /res/drawable-mdpi/ and drag&drop the battery images you have extracted from the original framework-res.apk to that folder.
Close the file, go back to the CMD prompt window and type
Code:
adb push framework-res.apk /system/framework
Once done, the only thing left to do is typing
Code:
adb reboot
And when your phone finishes rebooting you should see the new battery icons you just uploaded to the phone.
I think I've explained it well, as I said I'm kinda sleepy
I'll be back tomorrow, hope to read you have succeed on changing the battery icons
hells yeah, thank you that worked for me just like you explained it. now i just need to make it fit in with my black theme. but thanks again hope i didnt get cursed out by your girl
She didn't noticed, or so I hope Now I'm leaving to work but you have two options now, change all the rest of your icons and also your current statusbar background so the icons fits with the statusbar or edit the battery icons so it fits with your background.
Here's how my screen looks this morning (thanks UltraLinx for the walppaper) to give you an idea of the background bar thing, I changed mine to a full black bar, If I can help you with your customization I'll be back in like 6 hours or so
{
"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"
}
Coming from the incredible I have a circle battery meter from the desire ported over and there are 100 ,pngs in the framework , 1 for each % as battery dies. But the phone is only showing only the 20% increments like the normal battery indicator shows. any idea how I can get it to show each percent as phone dies?
Sent from my Htc Incredible
lolingu said:
My girlfriend will kill me tonight...
Okay, excuse my bad english, I'll do what I can... Grab the ROM you want to take the battery icons from in the update.zip and download somewhere to your computer, then unzip it and in the folders you just have created navigate to /system/framework/
Here select the framework-res.apk file and open it with WinRAR (you can do that with 7zip I think but I use WinRAR), once opened navigate inside the zip to /res/drawable-mdpi/ folder and extract all the images there to a new empty folder.
Once extracted all the images, search for the images called
stat_sys_battery_0.png
stat_sys_battery_10.png
stat_sys_battery_20.png
stat_sys_battery_40.png
...
stat_sys_battery_charge_anim4.png
stat_sys_battery_charge_anim5.png
stat_sys_battery_unknown.png
There are 14 battery images in total, at least in my ROM. You can delete all the other images as they have nothing to do with battery status and it will be more easy to do the next step if you only have the battery images.
Connect your phone to your PC, boot your phone into recovery and select "USB-MS toggle". In your computer open a CMD (MS-Dos) prompt window, navigate to the 'tools' directory of your SDK folder (I recommend to unzip SDK in C:/AndroidSDK or something like that for easy access) and write
Code:
adb
adb pull /system/framework/framework-res.apk framework-res.apk
DON'T CLOSE THE CMD WINDOW, if you do, you will have to start ADB again for the "push" step.
That will take the framework-res.apk file from your phone and download it into your computer.
Next you have to do is to open the file you have pulled from your phone with WinRAR, navigate inside that file into /res/drawable-mdpi/ and drag&drop the battery images you have extracted from the original framework-res.apk to that folder.
Close the file, go back to the CMD prompt window and type
Code:
adb push framework-res.apk /system/framework
Once done, the only thing left to do is typing
Code:
adb reboot
And when your phone finishes rebooting you should see the new battery icons you just uploaded to the phone.
I think I've explained it well, as I said I'm kinda sleepy
I'll be back tomorrow, hope to read you have succeed on changing the battery icons
Click to expand...
Click to collapse
Im getting this error: device not found?
Anyone know why?
stifler05 said:
Im getting this error: device not found?
Anyone know why?
Click to expand...
Click to collapse
Have you installed the adb drivers for your phone?
Coolsaber57 said:
Have you installed the adb drivers for your phone?
Click to expand...
Click to collapse
Everything was installed, but there was some problem, fixed now.
Now Im getting new error: remote object /system/framework/framework-res.apk does not exist.
stifler05 said:
Everything was installed, but there was some problem, fixed now.
Now Im getting new error: remote object /system/framework/framework-res.apk does not exist.
Click to expand...
Click to collapse
How did you resolved the issue? Care to share?
JokerAce said:
How did you resolved the issue? Care to share?
Click to expand...
Click to collapse
Sure mate.
I uninstalled all Android drivers(cause mass storage) with USBDeview(Ill post this software if you want), connected the phone while it was running then manually installed drivers that you get with SDK. And everything is working. But cant fix second error now
I'm trying to do the same thing, but I get a different error:
Code:
C:\Users\Eric\Desktop\Android Dev\AndroidSDK\tools>adb push framework-res.apk /s
ystem/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Per
mission denied
Fix? I'm rooted, what do I need to do to get permission? adb noob.
E_man5112 said:
I'm trying to do the same thing, but I get a different error:
Code:
C:\Users\Eric\Desktop\Android Dev\AndroidSDK\tools>adb push framework-res.apk /s
ystem/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Per
mission denied
Fix? I'm rooted, what do I need to do to get permission? adb noob.
Click to expand...
Click to collapse
/system is mounted read-only. "adb shell mount" will show that.
Code:
adb remount
This will fix it. Note, no "shell" there, alternative:
Code:
adb shell mount -o remount,rw /system
I do use this one, instead, because I then do whatever and issue that command again, changing rw to ro, to clear write permission.

[HELP] How to create folder and file if they dont exist.

Hi
I am new to tasker, so I am trying to learn things how to work with it.
This time I want to create a specific folder and file inside it if the folder and /or the file don't exist... I really don't have a clue... Please help me if you can..
Since I'm a newbie pls try to give me a solution in a simple way..
Thanks
These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
{
"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"
}
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file
Sukarn said:
These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file
Click to expand...
Click to collapse
Thanks so much for reply, your explanation is super simple and really nice..
But I'm sorry I need to ask you couple more questions, since I said I'm a newbie I don't understand everything...
As you did "/sdcard/something" what should I replace "something" with? And also should I try to match the variable with the file or directory name or just simply %exist ~ file/dir?
I'm sorry if I sound stupid.. Please don't laugh at me.. I'm still learning
Thanks again and waiting eagerly for your reply... Thanks
Sukarn said:
These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file
Click to expand...
Click to collapse
Ok i got it work using shell command
For directory
Run Shell > [ -d /sdcard/dirname ] && echo 1 || echo 0
Store return variable %chkdir
Then checking the value of the variable 1 for exist 0 for not
Same way for file
Run Shell > [ -e /sdcard/filename ] && echo 1 || echo 0
Store return variable %chkfile
This method is working for now... I still look forward for your simple solution since your way is simpler but I need to understand it well
Thanks
dreamsayer said:
As you did "/sdcard/something" what should I replace "something" with?
Click to expand...
Click to collapse
"something" could be a file or folder or path to file/folder. Easiest way I can tell you to get the full path to a file or folder, without explaining how file paths work, is to long-press on that file/folder in ES File Explorer and then open its Properties, then tap on 'copy full path'
dreamsayer said:
And also should I try to match the variable with the file or directory name or just simply %exist ~ file/dir?
Click to expand...
Click to collapse
You typed %exist, but I'm typing %exists because that is the name I used for the variable in my screenshot.
dir is short for directory. Directory means folder.
If
%exists !~ file
AND
%exists !~ dir
then nothing of that name exists in that location.
If %exists !~ file
then what you checked does not exist as a file, but there could be a folder of that name in that location.
If %exists !~ dir
then what you checked does not exist as a folder, but there could be a file of that name in that location.
If %exists ~ file
then it exists as a file
If %exists ~ dir
then it exists as a folder
Sukarn said:
"something" could be a file or folder or path to file/folder. Easiest way I can tell you to get the full path to a file or folder, without explaining how file paths work, is to long-press on that file/folder in ES File Explorer and then open its Properties, then tap on 'copy full path'
You typed %exist, but I'm typing %exists because that is the name I used for the variable in my screenshot.
dir is short for directory. Directory means folder.
If
%exists !~ file
AND
%exists !~ dir
then nothing of that name exists in that location.
If %exists !~ file
then what you checked does not exist as a file, but there could be a folder of that name in that location.
If %exists !~ dir
then what you checked does not exist as a folder, but there could be a file of that name in that location.
If %exists ~ file
then it exists as a file
If %exists ~ dir
then it exists as a folder
Click to expand...
Click to collapse
Thanks a lot bro it works like a charm... Thanks for your patience with me
dreamsayer said:
Thanks a lot bro it works like a charm... Thanks for your patience with me
Click to expand...
Click to collapse
No problem. Everyone starts somewhere. No one starts as an expert.
Tips: use the ? button at the top, use the user-guide built into tasker, and save all documentation offline when it asks you, because you'll want to refer to the docs at random times.
Sukarn said:
No problem. Everyone starts somewhere. No one starts as an expert.
Tips: use the ? button at the top, use the user-guide built into tasker, and save all documentation offline when it asks you, because you'll want to refer to the docs at random times.
Click to expand...
Click to collapse
I'll do that thanks a lot...

[Guide][noobs][theming basic and background]

first dont blame me if anything goes wrong with you just search before ask
this guide is for noobs those who want to have a background basic on theming
second sorry for my bad en
iam introducing my self my name is mohammed khalid from egypt my nickname here is apk5656
ok so lets start
keep in your mind iam using win8 so it may have diiferent settings if you have a win7
---------------------------------------------------------------------------------------------------------------------------
Installing tools
Setting up the Java SE Runtime Environment
step one install those files
STEP 1: Install these two files:
- JRE8 (This is what I use):http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- JDK8 (Install just in case):http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
STEP 2: Setting up JDK JAVA_HOME environment variable:
After installing the two files above, locate your JDK location, in my case, mine is C:\Program Files\Java\jdk1.8.0_20.
Then open up your Control Panel and click into System (Control Panel\All Control Panel Items\System)
then in side bar click advanced system settings
A popup will appear, click on the Advanced tab, then click on "Environment Variables..."
Another smaller popup, Environment Variables, will open up. Click on "New..."
According to the screenshot, click type in the Variable name (JAVA_HOME) and Variable value (Location of your JDK set up).
After everything is done, click OK on all popups, then reboot your computer.
You are now ready for apps like eclipse/ Studio, future proofing yourself for now.:victory::victory::victory::highfive::highfive::highfive:
-----------------------------------------------------------------------------------------------------------------------------------
now we will set up your tools which will help you theming
apk tool
download tool from here http://www.mediafire.com/download/s7y2bja7pjuxqru/APK-Multi-Tool-Stable-RELEASE.zip
after downloading it continue with me to setting up it
setting up apktool
First Make sure you have "framework-res.apk" of your device whose apk you are going to edit.
If you dont have "framework-res.apk". Click Here (Micromax A35 Stock framework)
Steps:
Extract the downloaded zip and open extracted folder.
{
"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"
}
2. Open Setup.bat and press "3" (Without Quotes)
3. It will make automatically some folders and you will be again moved to the above screen.
4. Now put your framework-res.apk to "other" folder (Have a look there).
5. Now in the menu, Press 2.
6. Now press 1. (a cmd window will popup).
type there- "apktool if framework-res.apk" (without quotes)
and press ENTER.
Now Quit the menu.
Congratulations, You have set up APK MULTITOOL successfully
------------------------------------------------------------------------------------------
decompiling/recompiling your first app
PART 1: How To Decompile Apk:
1. If You All Done Right, You Will See Like This,
2. Let Us Decompile Settings.apk (Get Your Settings.apk From Your Device /system/app)
3. Place Your Settings.apk inside "place-apk-here-for-modding"
4. Open "Script.bat", Press Enter, Then You Will See Like This.
5. As You Know, Settings.apk is a system app, so Press Option "9", Then Press ENTER
6. Wait For Decompilation process(It will be automatically done.)
7. Your Decompiled Apk Will Be In "projects" folder.
PART 2: How To Recompile Apk:
1. The Basic Editing, You Must Know How To Do This, I Wont Teach You This One, In This Tutorial, After Editing, Open "script.bat".
2. Press "11" and ENTER, To Compile System Apps.
3. After Buliding Apk, You Will See Like This
4. Press "y" and ENTER, Now You Will See Like This.
6. Now The Most Important Part Comes, MINIMISE Your script.bat Screen, Find "keep"
Open this folder, You Will Get These,
Be Carefull:
Delete "resources.arsc", "res" file/folder, If You Edited any ".xml", "png".
Delete "classes.dex" if you have edited any "smali file".
Delete "AndroidManifest.xml", if you editied This File (If You Not Edited "AndroidManifest.xml", Dont Delete It.)
7. Open The MINIMISED "script.bat", Press ENTER.
8. You Will Find Your Modded Apk In "modified-system-apk-files-here" folder.
9. Rename "systemSettings.apk" to "Settings.apk".
10. Paste This "Settings.apk" to Your /system/app.
NOTE:
If You Edit Your "AndroidManifest.xml", You Need to Sign Your Apk.
For Signing, Place the Modded App in "place-apk-here-for-signing" folder.
In "script.bat", The Option Number is "20".
The "script.bat" Automatically Termainates After Signing.
The Signed Apk is in "place-apk-here-for-signing" folder.
Also, stock ROM dont accept custom signed system apk(s), for using custom signed system apk(s), you need to disable "signature verification" from "services.jar". google it
Dont worry about signatures, if you didnt edited your "AndroidManifest.xml".
--------------------------------------------------------------------------------------------------------------------------------
some basics to help you theming
.9 png images you cant edit them just by photoshop they have a custom edit bcuz the are patched
this thread will help you
http://.xda-.com/showthread.php?t=605662
ok now about the normal png you can edit it simply with photoshop but if you resized any png do not try to make it much bigger if you did this you will get bugs
ok now about editing xmls
look any xml file has connected with other
i mean if you open any layout xml you may found something like string/-
thats mean this layou xml has string in string.xml file in values folder that is what i mean with xmls are connected
so until now thats it this post will be updated soon with more basics bcuz the basics which i wrote is too small and i wanna to learn you a lot of basics
but thats just for my short time and i have alot of exams
ok untill now hope to see you around.......

Categories

Resources