in the name of god
hi all
as you know , we have two select in usb conect mod in cm 10
media device
camera
{
"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 just mtp in miui 5 (jb)
i think this simple guide can help u
Quote:
you need :
apk tool ( & apk manager & ...) - to decompile and recompile framework-res.apk
notepad++ - to edit the xml file
root explorer - to copy file from rom to sd card
Click to expand...
Click to collapse
================================================== ==============================
1- copy framework-res.apk to your pc from /system/framework
2- decompile it with apk tool
3- go to created framework-res.apk/res/xml/
4-open " storage_list.xml " with notepad++
5- in this line
Code:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />
add this line Among its
Code:
Code:
android:allowMassStorage="true"
after edit you must have this
Code:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
screen shot
6- save edit and recompile the framework-res.apk
7- copy build.prop in pc and open it with notepad++
8-
for cm 10
edit this line
Code:
Code:
persist.sys.usb.config=mtp
to
Code:
Code:
persist.sys.usb.config=mass_storage
for miui 5 (jb)
edit this line
Code:
Code:
persist.sys.usb.config=mtp
to
Code:
Code:
persist.sys.usb.config=mass_storage,adb
9- save change and replace build.prop and framework-res.apk in rom
you can putt them in flashable zip and install with recovery (attached for u)
reserved....
this method worked for me
Hello guys, this method worked for me.
I have a Xperia Neo, with CM10-20131006-NIGHTLY-hallon (JB 4.1.2)
I used root explorer for copy the files from PC to Phone.
Regards,
Related
In this guide I will show you how to show or hide the page indicator in the Home app
First of all, you'll need Apk Manager, this can be downloaded here.
Extract the zip to a folder you like, I'll use C:\Apk Manager\ in this guide!
Download Default Home. [4.0.A.2.368].rar from this post. (Should work on .145 fw too!)
Copy the Home.apk to C:\Apk Manager\place-apk-here-for-modding\
After you've done that, open Script.bat.
Select option 9.
Now the Home.apk will be decompiled.
When it's done decompiling, go here C:\Apk Manager\projects\Home.apk\res\values.
Open bools.xml with Notepad and go to line 3. Will look like this:
Code:
<bool name="desktop_indicator_timeout_fade">false</bool>
When you change "false" to "true", the desktop indicator will be hidden after a few seconds.
Now go to line 4.
Code:
<bool name="apptray_indicator_timeout_fade">false</bool>
Change "false" to "true" if you like to hide the indicator on the app tray.
Save and close the file. Now go back to the Apk Manager tool and select option 11, the apk will now be compiled again. It will ask you this:
Is this a system apk (y/n)
Answer with y and press enter.
After that you'll get another question:
Aside from the signatures, would you like to copy
over any additional files that you didn't modify
from the original apk in order to ensure least
# of errors (y/n)
Answer with y again.
Now this will show up:
In the apk manager folder u'll find
a keep folder. Within it, delete
everything you have modified and leave
files that you haven't. If you have modified
any xml, then delete resources.arsc from that
folder as well. Once done then press enter
on this script.
Go here C:\Apk Manager\keep and delete resources.arsc.
Now go back to the Apk Manager tool and press enter.
In C:\Apk Manager\place-apk-here-for-modding you'll find this: unsignedHome.apk. Rename it to Home.apk and push it to your device with adb.
Adb commands:
Code:
adb push Home.apk /sdcard/
adb shell
$su
#mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
#busybox cp -R /sdcard/Home.apk /system/app/
#sync
Now the indicators will hide after a few seconds
{
"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"
}
Okay so this how you can remove your systems app easy yourself.
YouTube on the script in action
http://youtu.be/GllT3hTsNzU
What you will need.
7zip or WinRAR
Note++ or PSPad (PSPad is what I use)
1. download the dfuse_remove_app.zip
{
"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 the archive with 7zip
3. go inside the META_INF folder
4. go into com folder
5 go into google folder
6. go into android folder
7 and there is the updater-script
8.drag it out on to your desktop or a folder whatever you want. (minimize the archive)
9. open the updater-script with Note++ or PSPad
10. the script.
Code:
ui_print("remove apps");
run_program("/sbin/mount", "/dev/block/mmcblk0p33", "/system");
package_extract_dir("system", "/system");
show_progress(1, 15);
delete("/system/app/IMEXT9Turkish.apk", "/system/app/IMEXT9Swedish.apk", "/system/app/IMEXT9Spanish.apk", "/system/app/IMEXT9Slovenian.apk", "/system/app/IMEXT9Slovak.apk", "/system/app/IMEXT9Serbian.apk", "/system/app/IMEXT9Russian.apk", "/system/app/IMEXT9Russian.apk","/system/app/IMEXT9Portuguese.apk", "/system/app/IMEXT9Polish.apk", "/system/app/IMEXT9Norwegian.apk", "/system/app/IMEXT9Lithuanian.apk", "/system/app/IMEXT9Latvian.apk", "/system/app/IMEXT9Italian.apk", "/system/app/IMEXT9Hungarian.apk", "/system/app/IMEXT9Greek.apk", "/system/app/IMEXT9German.apk", "/system/app/IMEXT9French.apk", "/system/app/IMEXT9Finnish.apk", "/system/app/IMEXT9Estonian.apk", "/system/app/IMEXT9BahasaIndonesia.apk", "/system/app/IMEXT9BahasaMalaysia.apk", "/system/app/IMEXT9Bulgaria.apk", "/system/app/IMEXT9Czech.apk", "/system/app/IMEXT9Dutch.apk", "/system/app/IMEXT9Danish.apk", "/system/app/IMEXT9Croatian.apk", "/system/app/IMEXT9Romanian.apk");
ui_print("Unmounting Filesystems . . .");
unmount("/system");
ui_print("Finished");
11. Now what to edit for the apps you want to delete. I use this to remove all the language keyboard apk,but the English one.
Now the only thing you want to edit is the apk name.
Code:
"/system/app/IMEXT9Turkish.apk",
Like this
Code:
"/system/app/FriendStream.apk",
Now you can add and make this shorter if you want
just keep this at the beginning
Code:
delete(
and this at the end
Code:
);
Look at the 1st code for example.
12. Now put the updater-script back into the archive and close.
13. flash in recovery.
List of apps this will remove if you flash this
Code:
IMEXT9Bulgaria.apk
IMEXT9Croatian.apk
IMEXT9Czech.apk
IMEXT9Danish.apk
IMEXT9Dutch.apk
IMEXT9Estonian.apk
IMEXT9Finnish.apk
IMEXT9French.apk
IMEXT9German.apk
IMEXT9Greek.apk
IMEXT9Hungarian.apk
IMEXT9Italian.apk
IMEXT9BahasaIndonesia.apk
IMEXT9Latvian.apk
IMEXT9Lithuanian.apk
IMEXT9BahasaMalaysia.apk
IMEXT9Norwegian.apk
IMEXT9Polish.apk
IMEXT9Portuguese.apk
IMEXT9Romanian.apk
IMEXT9Russian.apk
IMEXT9Serbian.apk
IMEXT9Slovak.apk
IMEXT9Slovanian.apk
IMEXT9Slovenian.apk
IMEXT9Spanish.apk
IMEXT9Swedish.apk
IMEXT9Turkish.apk
I forgot two Chinese apps in the script. Will update later
CIMEXT9.apk
cxt9ldb.apk
I hope this helps some of you.
updating pictures now sorry.
fixed sorry about that
Hello, this is my first "guide" and I'm not sure if it's placed correctly so please move it if not.
----------
Now that it's clear that google and all the other big search providers track you and hand out your data to the nsa etc, I wanted to use startpage.com as my default search engine in the android stock browser, but unfortunatly you cannot add any search engines inside the app.
---
After some research I found a method that does let you add search engines though, and I wanted to share it with all of you:
1. Get APKTool (on Windows which I used, you can just download the gui based Tool) - please search the forum for the link
2. Grab your Browser.apk from /system/app/ and the framework-res.apk from /system/framework/ and put them into the apktool directory.
3. Install the framework-res.apk and then decompile the Browser.apk (both with/inside the apktool)
4. Open the following file in the browser directory created by apktool: /res/values/arrays.xml
5. Scroll down until you find an entry like this and copy/paste it below:
Code:
<string-array name="duckduckgo">
<item>DuckDuckGo</item>
<item>duckduckgo.com</item>
<item>https://duckduckgo.com/favicon.ico</item>
<item>https://duckduckgo.com/?q={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
6. Edit the copy to whatever search engine you want to add. For example to add startpage.com:
Code:
<string-array name="startpage">
<item>Startpage</item>
<item>startpage.com</item>
<item>https://startpage.com/favicon.ico</item>
<item>https://startpage.com/do/m/mobilesearch?query={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
If you dont want the mobile site:
Code:
<string-array name="startpage">
<item>Startpage</item>
<item>startpage.com</item>
<item>https://startpage.com/favicon.ico</item>
<item>https://startpage.com/do/search?query={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
7. Now scroll down further until you find:
Code:
<string-array name="search_engines">
8. Add the search engine you just added above (make sure the name matches that name you chose) inside a "<item></item>"-Tag. Example for Startpage.com:
Code:
<item>startpage</item>
9. Recompile the Browser.apk with the apktool. (you will need the android_meta stuff from the old apk - apktool explains that)
10. Push it back onto the device inside /system/app/ and change rights/owner if necessary. (root/root with rw-r-r)
11. Reboot and now you should be able to choose the newly added search engine in the browser.
A little confused, because duckduckgo already exists without the need for me to edit anything, yet it doesn't show up as a search engine option... Yet Ask Jeeves DOES, and it shouldn't.
{
"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"
}
Your phone is country coded or smth - you prolly need to change the arrays.xml in /res/values-en-rGB ?
I'm running Cyanogenmod 10.1.2(stable) on a Nexus 4.
I didn't realise they had UK specific builds...?
Hi guyz,
Today I want to share something about settings.apk mod….
Its about adding small details in about phone section…
{
"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"
}
NOTE: I have not copied it... Actually I was playing with some codes and got success. I don’t know if there is any guide about this… There is guides about this, but those are hard for newbies because those are complex and there is some work in strings.xml... But in my guide there are no work of that .... I think this is the easiest way.....
So lets start…
Requirments
Apktool, Java Runtime
NotePad++, 7zip
Knowledge about decompiling, recompiling
A little respect (must)
And your Settings.apk & framework-res.apk
Step 1..
Decompile your Settings.apk
Step 2..
Go to res > xml
Open device_info_settings.xml
Now Copy This Code
Code:
<Preference android:title=" TITLE " android:summary=" SUMMARY " style="?android:preferenceInformationStyle" />
And paste it before </PreferenceScreen>
See the Image… I have added 2 lines… And You can write there anything……
Step 3..
Now Recompile your settings
Step 4..
Open decompiled Settings folder then go to build/apk, there u will find AndroidManifest.xml file…
Now open original Settings.apk using 7zip then copy the META-INF folder and AndroidManifest.xml file…
paste both the files in build/apk folder, if asked to replace, click yes..
now go to a folder in settings folder named dist, there u will find Settings.apk which u compiled.....
now delete it. We never use the first Settings.apk that we compile, because we need to add the META-INF and AndroidManifest.xml files for signing purposes.
Once you have deleted the 1st compiled Settings.apk, return to the command prompt and again compile the Settings using this code
Code:
apktool b Settings
After it is compiled go to dist folder there u will find new and fresh compiled Settings.apk which u can use it…
Step 5..
Using Root Explorer push it into system/app folder and set permissions to rw-r-r-
That's it!
Credit goes to YOU if you get success :fingers-crossed:
Nice tut sir
Hi, in this tut, ill show you how to add rom banners in about phone settings of your lollipop rom.
Files required-
-Zip in attachments
-DEODEXED rom
-Brain(link?)
Part One-
-Extract the zip
-Copy these files into the folder--->
Code:
/system/priv-app/Settings/Settings.apk
And
Code:
/system/framework/framework-res.apk
-Run cmd.exe and run this command--->
Code:
apktool if framework-res.apk
This will install the framework.
-Then run this command to decompile settings.apk--->
Code:
apktool d Settings.apk
Part two-
-In apktool folder goto Settings/res/layout and create a logo.xml file
-Open it, and paste the following lines in it--->
-----------------------------------------------------------------------------------------------------------------------------------
"<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/logo" />
</LinearLayout>"
------------------------------------------------------------------------------------------------------------------------------------
-Resize your banner (which should be a PNG file) to 500x123 and rename it to logo.png. Then copy it to Settings/res/drawable
Part Three-
-Navigate to Settings/res/xml and open device_info_settings.xml.
-Add this line--->
------------------------------------------------------------------------------------------------------------------------------------
"<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Right below this line--->
------------------------------------------------------------------------------------------------------------------------------------
"xmlns:android="http://schemas.android.com/apk/res/android">"
------------------------------------------------------------------------------------------------------------------------------------
-It should look like this--->
-----------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Part four-
-Now open cmd.exe and type this to recompile--->
Code:
apktool b Settings
Part Five and most important!!
-After the last command finishes, goto Settings/original and copy everything inside it to
Settings/build/apk and replace the file if prompted
-Then again run--->
Code:
apktool b Settings
-Now you have your settings.apk in Settings/dist/
-Copy it to /system/priv-app/Settings/ and replace the old file, set rw-r-r- permissions and reboot!
NOTE- THIS HAS BEEN TESTED ON AOSP BASED LOLLIPOP ROM. I DO NOT GUARANTEE WORKING ON CUSTOMIZED ROMS LIKE TOUCHWIZ OR LG ROMS. ALL LINES MUST BE ADDED WITHOUT THE "(QUOTES) MARK AT THEIR STARTING AND ENDING.
It should 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"
}
HIT THNX IF IT HELPED!!!
Thanks alot i was looking for a guide like this but for 5.0+ also i dont see any xml code in the code parts?
Are u using xda app?
Whoops! I remember adding em. Anyways, I'll do it.
Would it be OK if I add em in few hrs? I hv school.