[Q] switch to art runtime - Android Q&A, Help & Troubleshooting

hi i have lg g pro lite wiith android 4.4.3, in developer options i don't have a runtime option.
So i have tried to change it manually, i modified /data/property/persist.sys.dalvik.vm.lib and to build.prop i add this:
Code:
persist.sys.dalvik.vm.lib=libart.so
dalvik.vm.dexopt-data-only=1
After that i reboot my device, it take more than usually but dalvik cache is still exists....so i have a trouble....after reboot the /data/property/persist.sys.dalvik.vm.lib file contains again libdvm.so...?!?
Anyone can help me?

Related

[Software]Useful PC apps for Android Devs and Owners

First of all, I am not developer of these softwares. I found them over xda and web and thought to share with all of you, in all good intentions.
ADB Mask Controller
Dev- Mask-1
App info-
• push, pull, install apps and transfer between System <=> User apps and between SD <=> Device
• remove & uninstall apps, clean data from deleted apps and delete orphan files
• change min & max CPU frequency (from available steps)
• view and edit: gps.conf, Hosts, build.prop, hw_config and media_profiles.xml
• view and kill running processes
• zipalign
• keyboard functionality
• search files / folders
• push and pull Bootanimation, framework-res and Framework jar files
• clean cache & temp folders and application data cache
• Enable Market to show paid apps
• Create phone log (logcat, dmesg)
• View device info
• mount r/w and mount r/o (for system) function
• and others.
It's better to backup your data before Zipaligning, because some launchers don't work correctly when they are zipaligned, causing a reboot loop.
To launch the tool
*unzip the package
*run "ADB Mask Controller.exe"
*connect your phone (enable USB debugging)
*If this is the first time you use this tool click on "Check root access and busybox". If you are sure that your phone is rooted and the tool says otherwise, make sure that your phone allows the program to have SuperUser access.
*Busybox is required in order to use this tool. If you get the result "NO" next to the Busybox Version then you must push/install it on your phone.
Hints for Wireless connection:
- To connect your phone by wireless you must install and turn on adbWireless, adb over Wifi or another similar app
- Wireless connection is slower than USB connection. It is not recommended to do advanced tasks using wireless since the connection can be interrupted more easily than USB connections.
- The display must be turned on while connected with wifi (or a wakelock must be enabled through an app e.g. Waketimer) in order to prevent the cpu from going to sleep mode while it's working with wireless adb.
Download Link
xUltimate and Ultra ADB
xUltimate
Dev- xeudoxus
It is a great tool to deodex whole rom.
Tool Info-
xUltimate Main v2.2.8
*manual bootclasspath options
*Gingerbread support
Download Link
Ultra ADB
Dev-nightshack0
Features:
*+ GUI for ADB (Android Debug Bridge)
*+ Reboot to Download Mode, Recovery Mode, and Normal Reboot
*+ Device Information
*+ Start and kill ADB server
*+ Drag and Drop APK installer
*+ ZIP Flasher
*+ File Push/Pull
*+ Custom ADB Commands
*+ "ADB Shell" option
*+ Log and ADB Output text
*+ Wireless ADB Option
*+ Misc Commands
*+ Batch APK Installer
Download Link
QtADB
QtADB
QtADB is window app based on adb.it lets you to copy,remove etc your files and apps from PC and Android Phone
This app is under developing so be tolerant for any bug...
visit QtADB website: http://qtadb.wordpress.com/
Features:
1. File manager
-copying files and dirs between phone and computer
-removing files and dirs
-creating new dir
-and other
2. App manager
-installing apps
-removing apps
-creating backup of apps with data
-restoring backups of apps with data
3. Shell
-opens android shell
4. Screenshot
-take screenshot of your device
-save screenshot to png file
5. Fastboot
-flash bootloader, radio and recovery
-boot recovery
6. Recovery
-nandroid backup/restore
-wipe data
-flash rom
-wipe battery stats
-fix uid mismatches
7. Reboot
-to bootloader
-to recovery
-normal reboot
8. Settings
-set font used by app
-set starting paths (or remember paths on exit)
-and other
9. Automatically detects phone (device, fastboot and recovery mode)
Download Link
Android Commander
Android Commander
Dev- PanPiotr
Android Commander is windows application to keep control on your android apps and files from PC. This is a small, very very fast and intuitive app.
Features
Explore files:
- copy multiple files/dirs between Phone and PC
- copy multiple files/dirs between Phone folders
- delete multiple files/dirs from Phone
- new dir and rename options
- drag&drop multiple files/dirs in to progrm
- drag&drop files/dirs between program tabs
- partitions size info
- bookmarks
Manage apps:
- windows integration
- backup multiple apps to any dir on Phone/PC
- batch/single apps install
- install as private
- update
- batch/single uinstall apps
- uninstall with option to keep data or not
Console:
- type any shell command
- run sh script from PC
and more…
- flashing zip and img files
- options to reboot, reboot to recovery, reboot to bootloader, power off phone
- screenshots (beta)
Requirements
Phone Requirements:
- ROOT (only for Applications Manager and flashing options)
- BusyBox (required only for rooted phones; included to most ROMs)
- Settings->Applications->Development->USB debuging must be enabled
- USB cable
PC Requirements:
- Windows
- Instaled Android SDK *
- Instaled ADB USB Driver from SDK
- SDK/Tools set in System Path (program can set it for You )
* Download the Android SDK: http://developer.android.com/sdk/index.html
* Installing the Android SDK: http://developer.android.com/sdk/installing.html
Download Link
Droid Explorer
Droid Explorer
Droid Explorer is a Open Source Android device manager for Rooted devices.
Device Requirements
Rooted Android Device with busybox
PC Requirements
Windows
.NET Framework 3.5 SP1
Some plugins require Java Runtime Environment and Java Web Start
Confirmed Devices
All Devices have been rooted and busybox installed
HTC Dream / G1 / ADP1
HTC Sapphire / Magic / MyTouch 3G / ADP2 / Ion
HTC Hero / G2 / CDMA Hero
Google Nexus One
Motorola DROID
Samsung Galaxy / i7500
Acer Liquid
HTC EVO
Samsung Galaxy 3
Samsung Galaxy S
Features
Includes the required windows USB drivers - you will be prompted to install the drivers during installation if running vista/7
Auto setup of Android SDK tools and drivers during install
Use an existing Android SDK if you already have one set up
Multiple Device Support
No need to mount SD card to access files
Copy any file on the device to PC
Copy files to clipboard
Copy update to device and auto-apply
Drag & Drop copying from Explorer to Droid Explorer
Auto detection of connected/disconnected device
Open files on PC
Plugin Framework
Application Manager
Right Click APK to install/uninstall
Take screen shots of device (landscape & portrait)
Open right from "My Computer" (a lot like how WinMobile is with active sync)
SQLite Manager Plugin
Uses System Icons for files displayed in explorer
Familiar Explorer like UI, including an Explorer like location bar
Android Screencast plugin
Install/Uninstall APK files right from explorer
Standalone plugin runner
Window 7 JumpLists for plugins
DesktopSMS plugin - Send SMS messages from your desktop
Service can be controlled now from the options dialog (can create the service if you do not use the installer)
Backup plugin for the "Bare Bones" Roms
Run shell scripts on the device by double clicking them
Download Link
youADB - Android Tool - v1.0
youADB
Dev- fabsn
youAdb is a very convenient tool for you android device which allows you to do various actions by just a couple of clicks.
Some features:
- SD-Partition-Manager (FAT32, EXT2/3/5, Linux Swap etc.!)
- App Manager (FULL BACKUP function!)
- File Manager (Push, Pull, Delete folders/files...)
- Reboot, Reboot Recovery, Adb Remount...
- View and automatically SAVE LOGS
- custom adb commands (like a shell)
- Install recovery images!
- Shows device's state and Serial Number
In contrast to most other android tools this tool is stable, leightweight (less than 1MB!) and easy to set up!
Download Link
Wondershare MobileGo
Wondershare MobileGo'
System Requirements
Operating System: XP/2003/Vista and Windows 7
Processor: 750MHz Intel or above, or AMD CPU
Free Hard Disk Space: 200 MB or more
RAM: 256 MB or above
Android system supported: Android1.5, Android1.6, Android2.0, Android2.1, Android2.2, Android 2.3
Features:-
Transfer Contacts from Symbian Phone
Simply transfer your Symbian Contacts to Android phone with 1 click.
Transfer Contacts from Nokia to Android, or Samsung to Android. The Symbian phones with S40/S60 are supported.
Import and Export Contacts
Easily import Contacts from Outlook, Outlook Express, or vCrad.
Export your Contacts to ensure you record all your Contacts easily and conveniently.
Easily add, delete, group and back up all of your Contacts for your Android smart phone.
Convert Movies or Music for Android Phone
Automatically convert the incompatible formats into compatible ones which Android phone can play when you try to import multimedia files from PC to your phone.
Freely transfer any of your favorite movies and music files from PC to your phone without worrying about the compatibility of file formats.
Set the video quality to get a suitable resolution for the enjoy of playing in your Android phone.
Backup and Restore Android Phone Data
Easily backup your Contacts, SMS, and APK Applications from Android to your PC in case that your phone is lost or stolen, or whenever you need to change your phone.
Quickly restore your backup data on PC to your Android phone.
Customized Media File Settings
Simply build a new playlist, rename or delete files, set ringtones, etc. to organize your media files according to your needs.
Quick Wi-Fi Connection
Besides USB connection, your Android phone can be also quickly connected via Wi-Fi connection.
Convenient SMS Management
Fast and convenient to receive, send, and organize all your SMS on your PC with PC keyboard.
Download Link
Nice share..! Thank you for the efforts..
Great work man!
Nice share!! Thanks!!
MyPhoneExplorer
Not for developing in first line, but realy the most big app for synching with pc!
Thanks mate!!
DaBigFreak said:
MyPhoneExplorer
Not for developing in first line, but realy the most big app for synching with pc!
Click to expand...
Click to collapse
Thanks mate . Will add in the reserved post.
thanks for sharing
Thanks for that. Very useful.
Any linux app?
Sent from my GT-I5800 using XDA App
tucucumelo said:
Any linux app?
Sent from my GT-I5800 using XDA App
Click to expand...
Click to collapse
I will post qtadb linux version today... thanks for reminding...
Me personal love most Total Commander for android (see signature link). Seems complicated to configure in the beginning but can nearly everything: root access, ftp, samba, webdav, execute scripts, remount rw, zip, tar, rar, shortcuts &&&.
I forgot since then what root explorer was
EDIT: Oh shhhh... seen too late in topic, it's not a PC app, sorry. But nevertheless very useful.
sent from g3 i5800
Thank you for this...i have never come across more useful softwares for my Android than those I found in this thread....Thanks for providing the link...if possible provide the original links to the threads too (if any) so that I can thank the individual developers too

Xposed fix for cm11 instructions

Guys I know that many of you have been having trouble with installing exposed on your One x+. This is what I did to get it working:
Before we begin I must note that you MUST start clean. No Data, No ROM and Wipe Dalvik.
1. In the recovery find the cm rom on your sd card and install it.
2. Then find the Paranoid Android Gapps and install the as well.
3. Then Wipe cache and reboot into boot loader.
4. Flash the kernel and reboot into your ROM.
5. After the setup process get the Xposed.apk file and install.
6. Go into the app, Install the Framework, BUT DON'T REBOOT!!
7. Exit the app.
8. Change SELinux to Permissive. ( I used SELinuxModeChanger from the play store to change it)
9. After you changed it go into Terminal Emulator and type in these commands
a. su
b. mount -o remount,rw /
c. mount -o remount,rw /system
d. restorecon /system/bin/app_process
10. Now you can reboot!
11. Done and have fun modding your device!
Dalvik still alive: cm-11-20160612-NIGHTLY-enrc2b.zip
Battery friendly
If some are interested, you can build latest nightly 20160612 cm11 +3originals:
- mar-V-in fake signature for nogapp (github .com/microg/android_packages_apps_GmsCore/blob/master/patches/android_frameworks_base-KK-LP.patch;
- inverted broken xposed & SELinuxModeChanger from d8130142.diff (cm 20151109 review.cyanogenmod .org/#/c/118800/);
- wakelockblocker cherry-picked from crdoid 4.4 (github .com/crdroidandroid/).
Your build will, keep same CVE as the official one and, stay untouched apart +3 above.
For xposed only correction; get 2 files from ORIGINAL cm-11-20151108-NIGHTLY-... or any unofficial CMbased,before 20151109, for your device; then xposed(+1reboot?) AND SELinuxModeChanger.apk will both work back:
system/bin/app_process
system/lib/libandroid_runtime.so.
Wakelock Blocker for Official 2016, Nightly CM11 (and many more...wip)
I will be glad, if some could report a checked OK with BetterBatteryStats_2.1.0.0 or Wakekock Detector /device, in my thread.
Thanks in advance, and re-joy your battery & privacy.

[Q] Unfortunately, Google Play services has stopped. Help?

Hey everybody, i get the error: Unfortunately, Google Play services has stopped. about 4 times a minute and my phone is unusable! i tried the following but it didnt fixed the problem for llonger than 2h. I'm using a gs3 (i9300) with 4.4.4 kk Archidroid 3.0.2 and boeffla kernel.
for everybody still struggeling with g.p.s. fc's:
ok best would be a clean system(cache,dalvik,system, data, inertnal storage).
if the error occurs,
1. go to settings-->apps-->g.p.s. (google play service)
2. write down the last 3 numbers (example: 7.5.71_(1955121-034)--> 034
3. uninstall updates + clear cache+ manage space-->clear all data
4. restart phone
5. reinstall g.p.s. update from google play store.
IF THAT FAILS:
1. go to http://www.apkmirror.com/apk/google-inc/google-play-services/
2. download the newest version with your 3 letters in the end: example: i have 034 --> i download:
Google Play services 7.5.74 (1997312-034) ||| please compare with the attached guide if the numbers are right (see end of my post)
3. install the apk
4. go to settings-->apps-->g.p.s. (google play service)
5. clear cache+ manage space-->clear all data
6. restart phone
Important: you need the right version or it will show up a error while installing. You can find out the right version with this tut:
To figure out the right version of Google Play services for your Android device, go to Settings -> Apps -> Google Play services, and look at the last 3 numbers in the parentheses. You'll see something like -XYZ where:
* X defines Android version:
0 for Android <5.0
4 and 7 for Android >=5.0
8 for Android TV
* Y defines CPU architecture:
1 for armeabi
3 for armeabi-v7a
4 for arm64-v8a
7 for x86
* Z defines DPI:
0 for universal
2 for 160
4 for 240
6 for 320
8 for 480
Notes:
It seems that -7YZ builds became -4YZ with Google Play services 6.5. If you were on -7YZ before, you should now install -4YZ.
Looks like -8YZ builds are for Android TV.
Examples:
-014 for Android <5.0 armeabi CPU 240 DPI device
-438 for Android 5.0+ armeabi-v7a CPU 480 DPI device
-876 for Android TV x86 CPU 320 DPI device
Click to expand...
Click to collapse
Moreover the following solution is not working for me, i need my gps on high accuracy most of the day.
Set the location to "Device only" instead of "High accuracy", this stops the error completely until google fixes the issue...
Click to expand...
Click to collapse
Is there another solution out there? IT looks like they fixed that problem for lollipop builds, so why its not fixable for kk?
push*
oh and if i turn off gps google play service is causing a massive wakelock
BOYS I GOT IT!!!!!!!!!!! HERE IS THE FINAL SOLUTION FOR G.P.S. FC'S!!!
The problem is caused by libjavacore.so Arter released a fix for (what i think) lollipop releases only for info, DONT FLASH!. it forces a bootloop for 4.4.4.
BUUUUUUT Markox89 released this issue fixer but i was scared of destroying all optimzed libs and data from archidroid. so i copied Markox89s libjavacore.so aaaaaaaand it works!!!!
So step by step now:
1. download attached libjavacore.rar AND EXTRACT!!!!
2. Put the libjavacore.so somewhere on your phone
3. restart to TWRP (recovery)
4. make a nandroid backup (to be save if bootloop) --> full backup
5. open up mount and mount system
6. go to advanced and open file manager
7. now copy the new libjavacore.so (press on it and copy)
8. go to /system/lib
9. paste it
10. not sure if necessary but i pressed on libjavacore.so and sed chmod 755
11. reboot problem solved!!!!!!!!!!!
12. wipe data and cache from gps to avoid wakelock!
13. install myandroidtools from playstore
14. reboot.
15. open myandroidtools --> services --> system
16. go to Google Play Services and google-services-framework and enable (make a tick at) at "System update service". (this will stop the google play services wakelock)
17. reboot. and your done
Wohoooooooo iam pretty happy and running late for a party, but i needed to share hf guys

[ROM] MIUI 8 Ver. 6.7.14 English (Android 5.0.2)

Instruction:
1. Go to TWRP
2. Wipe > Advance Wipe > Dalvik / ART Cache & System & Cache & Data (For fresh Install, ignore if updating from any previous MIUI rom to keep ur data)
3. Install Zip package
4. Clear Dalvik Cache (If updating from any previous MIUI rom)
5. After start keep airplane mode on by presing power key & salect aeroplane mode on ( this need to be done only while startup wizard, after complete start wizard you can off aeroplane mode)
6. Enable "Documents" app by going Setting > Install apps > go to end of apps there is "Documents" app & enable it.
For NVRAM Error:
Download NVRAM File & replace the both file Wifi & Wifi custom to Root or (/Device) > data > nvram > APCFG > APRDEB
& reboot.
IF INTERNET SPEED IS LOW:
Download K3 Note Modem Patch.zip & flash via TWRP. After flashing reboot.
IF FACING APP SLEEP IN BACKGROUND OR NOT AUTOSTART THEN PLEASE FOLLOW BELOW INSTRUCTION:
1. Go to Security app > Permissions > Autostart > Enable the perticular app which you want to be autostart.
2. Go to Security app > Battery > App battery saver > (click on pertucular app which u don't him to be sleep & keep running in background) > choose "No restrictions"
Changelog in 6.7.14
Very smooth comparing with 6.7.12
Fixed heating problem which was in 6.7.12 while playing game
Battery improved alot & not heating even playing clash of clan with connected charger….. Very surprising!!!
DOWNLOAD MIUI8
Is the ROM is stable one?
We already know there are many MIUI custom ROMS available for Lenovo k3 note but none of them is stable.:crying:

[Q] Dalvik , aot and JiT

Good day , I have a general question about these and hope someone could explain me what exactly happens there:
So , I played around with some props values ( also looked a bit into the aosp code / dev docu ) and set these values with magisk as system.prop
dalvik.vm.isa.arm64.features=Default
dalvik.vm.isa.arm.variant=cortex-a76
dalvik.vm.isa.arm.features=Default
dalvik.vm.heapstartsize=16m
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.5
dalvik.vm.heapminfree=8m
dalvik.vm.heapmaxfree=32m
dalvik.vm.dex2oat64.enabled=True
dalvik.vm.dex2oat-flags=--debuggable
dalvik.vm.dex2oat-filter=everything
dalvik.vm.image-dex2oat-flags=--debuggable
dalvik.vm.image-dex2oat-filter=everything
dalvik.vm.dex2oat-Xms=16m
dalvik.vm.dex2oat-Xmx=512m
persist.dalvik.vm.dex2oat-threads=8
dalvik.vm.dex2oat-threads=8
dalvik.vm.image-dex2oat-threads=8
dalvik.vm.boot-dex2oat-threads=8
dalvik.vm.jitmaxsize=128m
#extrem values ! Default would be 10000
dalvik.vm.jitthreshold=2500
dalvik.vm.jittransitionweight=333
dalvik.vm.jitprithreadweight=333
pm.dexopt.install=speed
pm.dexopt.bg-dexopt=speed
Note here that I used first dalvik.vm.dex2oat-Xmx=256m instead of 512m , after a Dalvik clean up and rebuild I had 248m of Dalvik cache , no noticable performance impacts etc , I though It would be better to raise the value. In the same reboot process to enable the changes I also did an update , now my Dalvik cache is empty and can't be rebuilt , the interesting part is that my system is now quicker ? Especially in games I can notice a significant boost in startup time and menu transitions , but firefox (the only app atm) doesn't like this but can be used normaly after 3 "crashes-to-launcher"
Side Note: I don't need answers how to repair anything , I'm curious what's going on
So my questions is first how can it be faster if it presumably uses the default java JiT in memory instead of creating Dalvik cache + odex files
And what happend that Dalvik etc can't be normaly initiated ? Does it not like the settings and simply crash , or is this the right behavior for my settings and I have simply no idea what I'm doing ?
Thank you for reading and any helpfull response
Both the Dalvik ( uses Just-In-time compiler, JIT ) and the ART ( what uses Ahead-Of-Time compiler, AOT ) are a Android runtime. ART is the default runtime since Android Lollipop. Knowing this you have to clarify what Android OS you are trying to hack.
jwoegerbauer said:
Both the Dalvik ( uses Just-In-time compiler, JIT ) and the ART ( what uses Ahead-Of-Time compiler, AOT ) are a Android runtime. ART is the default runtime since Android Lollipop. Knowing this you have to clarify what Android OS you are trying to hack.
Click to expand...
Click to collapse
Right it would probably good to know my setup , I use the Mi 9T with Miui 12.3 on android 11 , ram is 6gb , cpu/gpu is SDM730
Thank you for the first clarification , so does this mean the JiT is on newer OSs ineffektiv ? Or just a backup technique

Categories

Resources